Skip to content

Commit

Permalink
Update src/runtime/markdown-parser/handler/utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: nobkd <[email protected]>
  • Loading branch information
Barbapapazes and nobkd authored Jul 15, 2023
1 parent 28707f5 commit aae3254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/markdown-parser/handler/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function parseThematicBlock (lang: string) {

return {
language: languageMatches?.[0] || undefined,
highlights: parseHighlightedLines(highlightTokensMatches?.[1] || undefined),
highlights: parseHighlightedLines(highlightTokensMatches?.[1].replace(/\\]/g, ']') || undefined),
filename: filenameMatches?.[1] || undefined,
meta
}
Expand Down

0 comments on commit aae3254

Please sign in to comment.