From 2c5162671cd7e695ed2bbfe74a198ab4ce854521 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Nov 2018 13:23:18 +0900 Subject: [PATCH] Improve MFM --- src/mfm/parser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mfm/parser.ts b/src/mfm/parser.ts index e9174a99f4..b02a885961 100644 --- a/src/mfm/parser.ts +++ b/src/mfm/parser.ts @@ -85,6 +85,7 @@ const mfm = P.createLanguage({ r.mention, r.hashtag, r.emoji, + r.math, r.text ).atLeast(1).tryParse(x))), //#endregion @@ -203,6 +204,7 @@ const mfm = P.createLanguage({ r.mention, r.hashtag, r.emoji, + r.math, r.text ).atLeast(1).tryParse(x))), //#endregion