[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

View File

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