Add new MFM animation syntax
This commit is contained in:
parent
3d063c95d1
commit
d44cb7f256
5 changed files with 69 additions and 12 deletions
|
@ -73,6 +73,12 @@ export function toHtml(tokens: MfmForest | null, mentionedRemoteUsers: IMentione
|
|||
return el;
|
||||
},
|
||||
|
||||
shake(token) {
|
||||
const el = doc.createElement('i');
|
||||
appendChildren(token.children, el);
|
||||
return el;
|
||||
},
|
||||
|
||||
flip(token) {
|
||||
const el = doc.createElement('span');
|
||||
appendChildren(token.children, el);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue