Skip to content

Commit 881f6d4

Browse files
authored
fix(content): codeblock parse lang should support other meta (#691)
When codeblock contains other meta, it should not break lang parsing in utils.parseThematicBlock
1 parent 7fbb5ef commit 881f6d4

File tree

1 file changed

+1
-1
lines changed
  • packages/content/parsers/markdown/handlers

1 file changed

+1
-1
lines changed

packages/content/parsers/markdown/handlers/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const toAst = (h, node) => (highlighted) => {
5656
}
5757

5858
module.exports = highlighter => (h, node) => {
59-
const lang = node.lang + (node.meta || '')
59+
const lang = node.lang + ' ' + (node.meta || '')
6060
const { language, lineHighlights, fileName } = parseThematicBlock(lang)
6161
const code = node.value ? detab(node.value + '\n') : ''
6262

0 commit comments

Comments
 (0)