Skip to content

Commit

Permalink
Convert "Katex" to "KaTeX"
Browse files Browse the repository at this point in the history
  • Loading branch information
pilgrimlyieu committed Oct 1, 2023
1 parent 1738654 commit 1e04a26
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/en/reference/client/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ You can pass in a code highlighter of your own, or set to `false` to disable cod

Customize $\TeX$ rendering, the default behavior is to prompt that the preview mode does not support $\TeX$. The function provides two parameters, the first parameter indicates whether it should be rendered in block level, and the second parameter is the string of the $\TeX$ content, and return a HTML string as render result.

You can import $\TeX$ renderer to provide preview feature. We recommend you to use Katex or MathJax, or you can set to `false` to disable parsing $\TeX$.
You can import $\TeX$ renderer to provide preview feature. We recommend you to use KaTeX or MathJax, or you can set to `false` to disable parsing $\TeX$.

## search

Expand Down
2 changes: 1 addition & 1 deletion docs/src/en/reference/server/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ When setting security domains, you need to add the site address and the Waline s
| `MARKDOWN_SUP` | `true` | Whether enable superscript |
| `MARKDOWN_TEX` | `mathjax` | Service to parse math, `mathjax` `katex` and `false` are supported |
| `MARKDOWN_MATHJAX` | `{}` | MathJax Options |
| `MARKDOWN_KATEX` | `{}` | Katex Options |
| `MARKDOWN_KATEX` | `{}` | KaTeX Options |

## Mail Service

Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/client/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Waline 多语言配置。

自定义 $\TeX$ 渲染,默认行为是提示预览模式不支持 $\TeX$。函数提供两个参数,第一个参数表示渲染模式是否为块级,第二个参数是 $\TeX$ 的字符串,并返回一段 HTML 字符串作为渲染结果。

你可以自行引入 $\TeX$ 渲染器并提供预览渲染,建议使用 KatexMathJax,也可以设置为 `false` 以禁止渲染 $\TeX$
你可以自行引入 $\TeX$ 渲染器并提供预览渲染,建议使用 KaTeXMathJax,也可以设置为 `false` 以禁止渲染 $\TeX$

## search

Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/server/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Recaptcha Key 和 Secret 可在 <https://www.google.com/recaptcha> 申请。
| `MARKDOWN_SUP` | `true` | 是否启用上角标支持 |
| `MARKDOWN_TEX` | `mathjax` | 解析 TeX 的服务,支持 `mathjax``katex``false` |
| `MARKDOWN_MATHJAX` | `{}` | MathJax 选项 |
| `MARKDOWN_KATEX` | `{}` | Katex 选项 |
| `MARKDOWN_KATEX` | `{}` | KaTeX 选项 |

## 邮件

Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/katex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Waline Katex 案例</title>
<title>Waline KaTeX 案例</title>
<link rel="stylesheet" href="../dist/waline.css" />
<link
rel="stylesheet"
Expand Down

0 comments on commit 1e04a26

Please sign in to comment.