Add rainbow function for MFM

This commit is contained in:
syuilo
2021-08-05 21:55:41 +09:00
parent e410e22980
commit 62ccb53c24
4 changed files with 24 additions and 0 deletions

View File

@@ -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), ']']);