diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-27 16:41:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-27 16:41:30 +0900 |
| commit | 1af1638e2bf12198a74e077e4613b3dc5068ec8c (patch) | |
| tree | bb4d986d520586b0c9cd2c4157c32e7d3627f980 /src/mfm/html.ts | |
| parent | Add multiline math syntax (diff) | |
| parent | Fix test (diff) | |
| download | misskey-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.ts | 12 |
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'); |