Skip to content

Commit

Permalink
removed file metadata tag from codeblock filename regex (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh authored Nov 12, 2024
1 parent 974631a commit bdd3202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bdd3202

Please sign in to comment.