From 9751de98209075cdee482257487f5713065a8080 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 13 Apr 2023 00:33:53 +0000 Subject: [PATCH] chore: update mfm-js version (#9844) This resolves #9757. Co-authored-by: naskya Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9844 Co-authored-by: naskya Co-committed-by: naskya --- packages/client/src/components/mfm.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts index ff8c7a863..169fc7cfe 100644 --- a/packages/client/src/components/mfm.ts +++ b/packages/client/src/components/mfm.ts @@ -52,9 +52,7 @@ export default defineComponent({ const isPlain = this.plain; - const ast = (isPlain ? mfm.parseSimple : mfm.parse)(this.text, { - fnNameList: MFM_TAGS, - }); + const ast = (isPlain ? mfm.parseSimple : mfm.parse)(this.text); const validTime = (t: string | null | undefined) => { if (t == null) return null; @@ -467,9 +465,6 @@ export default defineComponent({ const sentinel = "#"; let ast2 = (isPlain ? mfm.parseSimple : mfm.parse)( token.props.content.slice(0, -6) + sentinel, - { - fnNameList: MFM_TAGS, - }, ); if ( ast2[ast2.length - 1].type === "text" &&