Add rainbow function for MFM
This commit is contained in:
parent
e410e22980
commit
62ccb53c24
4 changed files with 24 additions and 0 deletions
|
|
@ -165,6 +165,10 @@ export default defineComponent({
|
|||
class: '_mfm_blur_',
|
||||
}, genEl(token.children));
|
||||
}
|
||||
case 'rainbow': {
|
||||
style = this.$store.state.animatedMfm ? 'animation: mfm-rainbow 1s linear infinite;' : '';
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (style == null) {
|
||||
return h('span', {}, ['[', token.props.name, ...genEl(token.children), ']']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue