From 62d41023e19dfb551e0d9fd28f1361efaced9765 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Sun, 27 Jan 2019 19:12:45 +0900 Subject: Add jump syntax (#4007) * Add jump syntax * Fix typo: spin -> jump * Fix typo --- src/mfm/html.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mfm/html.ts') diff --git a/src/mfm/html.ts b/src/mfm/html.ts index acd6891aba..6dba6defe3 100644 --- a/src/mfm/html.ts +++ b/src/mfm/html.ts @@ -61,6 +61,12 @@ export default (tokens: MfmForest, mentionedRemoteUsers: INote['mentionedRemoteU return el; }, + jump(token) { + const el = doc.createElement('i'); + appendChildren(token.children, el); + return el; + }, + flip(token) { const el = doc.createElement('span'); appendChildren(token.children, el); -- cgit v1.2.3-freya