1
0
forked from mirror/misskey

Improve MFM

This commit is contained in:
syuilo 2018-11-25 13:36:52 +09:00
parent f3155ea180
commit 55dcd25df1
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -109,6 +109,8 @@ const mfm = P.createLanguage({
.map(x => makeNodeWithChildren('bold', P.alt(
r.mention,
r.hashtag,
r.url,
r.link,
r.emoji,
r.text
).atLeast(1).tryParse(x))),
@ -222,6 +224,8 @@ const mfm = P.createLanguage({
r.mention,
r.hashtag,
r.emoji,
r.url,
r.link,
r.math,
r.text
).atLeast(1).tryParse(x))),