mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
Improve MFM
This commit is contained in:
@ -109,6 +109,8 @@ const mfm = P.createLanguage({
|
|||||||
.map(x => makeNodeWithChildren('bold', P.alt(
|
.map(x => makeNodeWithChildren('bold', P.alt(
|
||||||
r.mention,
|
r.mention,
|
||||||
r.hashtag,
|
r.hashtag,
|
||||||
|
r.url,
|
||||||
|
r.link,
|
||||||
r.emoji,
|
r.emoji,
|
||||||
r.text
|
r.text
|
||||||
).atLeast(1).tryParse(x))),
|
).atLeast(1).tryParse(x))),
|
||||||
@ -222,6 +224,8 @@ const mfm = P.createLanguage({
|
|||||||
r.mention,
|
r.mention,
|
||||||
r.hashtag,
|
r.hashtag,
|
||||||
r.emoji,
|
r.emoji,
|
||||||
|
r.url,
|
||||||
|
r.link,
|
||||||
r.math,
|
r.math,
|
||||||
r.text
|
r.text
|
||||||
).atLeast(1).tryParse(x))),
|
).atLeast(1).tryParse(x))),
|
||||||
|
Reference in New Issue
Block a user