summaryrefslogtreecommitdiff
path: root/src/mfm/html.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-01-27 16:41:30 +0900
committerGitHub <noreply@github.com>2019-01-27 16:41:30 +0900
commit1af1638e2bf12198a74e077e4613b3dc5068ec8c (patch)
treebb4d986d520586b0c9cd2c4157c32e7d3627f980 /src/mfm/html.ts
parentAdd multiline math syntax (diff)
parentFix test (diff)
downloadmisskey-1af1638e2bf12198a74e077e4613b3dc5068ec8c.tar.gz
misskey-1af1638e2bf12198a74e077e4613b3dc5068ec8c.tar.bz2
misskey-1af1638e2bf12198a74e077e4613b3dc5068ec8c.zip
Merge branch 'develop' into math-block
Diffstat (limited to 'src/mfm/html.ts')
-rw-r--r--src/mfm/html.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mfm/html.ts b/src/mfm/html.ts
index b86d33a39a..acd6891aba 100644
--- a/src/mfm/html.ts
+++ b/src/mfm/html.ts
@@ -55,6 +55,18 @@ export default (tokens: MfmForest, mentionedRemoteUsers: INote['mentionedRemoteU
return el;
},
+ spin(token) {
+ const el = doc.createElement('i');
+ appendChildren(token.children, el);
+ return el;
+ },
+
+ flip(token) {
+ const el = doc.createElement('span');
+ appendChildren(token.children, el);
+ return el;
+ },
+
blockCode(token) {
const pre = doc.createElement('pre');
const inner = doc.createElement('code');