Skip to content

Commit 2eebafa

Browse files
committed
update docs
1 parent 54f2a98 commit 2eebafa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ChangeLogs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelogs
66

77
1. optimized the style of light/dark switch button.
88
2. fixed header being selected by mouse clicked twice times.
9+
3. support highlight code styles with light/dark theme.
910

1011
## 2022.2.9
1112

README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ mathjax:
228228
- `import`:该字段为 mathjax 的加载方式,可选值为`global``demand`
229229
- `global`:全局引入,所有页面均加载。好处是便利,缺点是可能会导致部分 markdown 语法被错误解析,比如连续`$$`会被解析为公式;而且全局引入会在没有公式的页面明显浪费页面性能。
230230
- `demand`【推荐方式】:按需引入。使用方法为在 config 中设置该字段后,文章中如果需要使用 mathjax,在 Front-matter 中声明即可
231-
`yaml
231+
```yaml
232232
---
233233
title: MathJax Test
234234
date: 2019-07-05 21:27:59
235235
tags:
236236
mathjax: true # 加入这个声明,这篇文章就会开启mathjax渲染
237237
---
238-
`
238+
```
239239
LaTeX 语法这里不做解释,本主题中,单 dollar 符号包围的为行内公式,例:`$f(x)=ax+b$`,双 dollar 符号包围的为块公式,例`$$f(x)=ax+b$$`更多写法请参考 LaTeX 和[Demo site 中的公式测试页面](https://siricee.github.io/hexo-theme-Chic/2019/07/05/MathJax_test/)。
240240

241241
### 图片标题

0 commit comments

Comments
 (0)