Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(zh-cn): fix typo #2073

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/zh-cn/docs/syntax-highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ prismjs:
tab_replace: ''
```

PrismJS 默认禁用。启用 PrimeJS 前应设置 `highlight.enable` 为 `false`。
PrismJS 默认禁用。启用 PrismJS 前应设置 `highlight.enable` 为 `false`。

### preprocess

Expand All @@ -204,7 +204,7 @@ PrismJS 主要是面向浏览器的。因此,在服务器端高亮模式下只
- [语言显示](https://prismjs.com/plugins/show-language/):当代码块有标注语言时,Hexo 总会添加 `data-language` 属性。
- Hexo 也支持其它不需要特殊 HTML 代码格式的 PrismJS 插件,不过你需要引入它们的 JavaScript 文件。

`preprocess` 设置为 `false` 时所有 primejs 插件均可用,只需额外注意以下几点:
`preprocess` 设置为 `false` 时所有 PrismJS 插件均可用,只需额外注意以下几点:

- [行号显示](https://prismjs.com/plugins/line-numbers/):当 `preprocess` 设置为 `false` 时,Hexo 不会生成插件所需的 HTML 代码格式。`prism-line-numbers.css` 和 `prism-line-numbers.js`均需被引入。
- [语言显示](https://prismjs.com/plugins/show-language/):当代码块有标注语言时,Hexo 总会添加 `data-language` 属性。
Expand Down