From dcb5cdbb112ce6b6bbf7c44eeda6af534e9c77b8 Mon Sep 17 00:00:00 2001 From: Ayush Date: Tue, 12 Nov 2024 16:49:29 +0530 Subject: [PATCH] removed file metadata tag from codeblock filename regex --- src/utils/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/markdown.ts b/src/utils/markdown.ts index d5402e47c..aa2d9d440 100644 --- a/src/utils/markdown.ts +++ b/src/utils/markdown.ts @@ -45,7 +45,7 @@ export async function serializeMarkdown( } } -const CODE_BLOCK_FILENAME_REGEX = /(name|file|filename)="?([^"\s]*)"?/; +const CODE_BLOCK_FILENAME_REGEX = /(name|filename)="?([^"\s]*)"?/; // const CODE_BLOCK_SHOW_LINE_NUMBERS_REGEX = /showLineNumbers=?(true|false)?/; function visit(node: any, tagNames: any, handler: any) {