[MFM] spinの中でflipを使えるように

This commit is contained in:
syuilo 2019-01-27 19:12:08 +09:00
parent d2cc5c3b63
commit 5fac7c1718
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ const mfm = P.createLanguage({
P.regexp(/<spin>(.+?)<\/spin>/, 1) P.regexp(/<spin>(.+?)<\/spin>/, 1)
.map(x => createTree('spin', P.alt( .map(x => createTree('spin', P.alt(
r.emoji, r.emoji,
r.flip,
r.text r.text
).atLeast(1).tryParse(x), {})), ).atLeast(1).tryParse(x), {})),
//#endregion //#endregion