From daf07089b411d657b83c54161b3a5c58a2d81092 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 ff8c7a8633..169fc7cfe8 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" &&