From 55dcd25df1797eaa848bea6fe5c20b28268f35f6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Nov 2018 13:36:52 +0900 Subject: [PATCH] Improve MFM --- src/mfm/parser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mfm/parser.ts b/src/mfm/parser.ts index 1d6a4b810..1e9b25b72 100644 --- a/src/mfm/parser.ts +++ b/src/mfm/parser.ts @@ -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))),