Add new MFM animation syntax
This commit is contained in:
parent
3d063c95d1
commit
d44cb7f256
5 changed files with 69 additions and 12 deletions
|
|
@ -131,6 +131,12 @@ export default defineComponent({
|
|||
}, genEl(token.children));
|
||||
}
|
||||
|
||||
case 'shake': {
|
||||
return h('span', {
|
||||
style: this.$store.state.device.animatedMfm ? 'display: inline-block; animation: anime-shake 0.5s ease infinite;' : 'display: inline-block;'
|
||||
}, genEl(token.children));
|
||||
}
|
||||
|
||||
case 'url': {
|
||||
return [h(MkUrl, {
|
||||
key: Math.random(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue