Skip to content

Commit cc3ccf1

Browse files
committed
fix(code): 联想状态下也能使用
1 parent 7589f31 commit cc3ccf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cherry-markdown/src/core/hooks/CodeBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export default class CodeBlock extends ParagraphBase {
288288
cacheCode = this.customHighlighter(cacheCode, lang);
289289
} else {
290290
// 默认使用 prism 渲染代码块
291-
// 如果没有写语言,默认用 js 样式渲染;但如果写了 Prism 不支持的语言,保留原始语言
291+
// 如果没有写语言,默认用 js 样式渲染;但如果写了 Prism 不支持的语言,保留原始语言
292292
if (!lang) {
293293
lang = 'javascript';
294294
} else if (!Prism.languages[lang]) {

0 commit comments

Comments
 (0)