diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-27 19:12:45 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-01-27 19:12:45 +0900 |
| commit | 62d41023e19dfb551e0d9fd28f1361efaced9765 (patch) | |
| tree | aaea0c571dec5eac8f81ce2e8264af36ba3b72d5 /src/mfm/html.ts | |
| parent | [MFM] spinの中でflipを使えるように (diff) | |
| download | misskey-62d41023e19dfb551e0d9fd28f1361efaced9765.tar.gz misskey-62d41023e19dfb551e0d9fd28f1361efaced9765.tar.bz2 misskey-62d41023e19dfb551e0d9fd28f1361efaced9765.zip | |
Add jump syntax (#4007)
* Add jump syntax
* Fix typo: spin -> jump
* Fix typo
Diffstat (limited to 'src/mfm/html.ts')
| -rw-r--r-- | src/mfm/html.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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); |