We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7589f31 commit cc3ccf1Copy full SHA for cc3ccf1
1 file changed
packages/cherry-markdown/src/core/hooks/CodeBlock.js
@@ -288,7 +288,7 @@ export default class CodeBlock extends ParagraphBase {
288
cacheCode = this.customHighlighter(cacheCode, lang);
289
} else {
290
// 默认使用 prism 渲染代码块
291
- // 如果没有写语言,默认用 js 样式渲染;但如果写了 Prism 不支持的语言,保留原始语言
+ // 如果没有写语言,默认用 js 样式渲染;但如果写了 Prism 不支持的语言,保留原始语言
292
if (!lang) {
293
lang = 'javascript';
294
} else if (!Prism.languages[lang]) {
0 commit comments