mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Improve MFM
This commit is contained in:
parent
df88d82cae
commit
15012960e8
1 changed files with 4 additions and 0 deletions
|
@ -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))),
|
||||
|
|
Loading…
Reference in a new issue