From 39117c0afd5aa8f36b043fb9fc451cf0929890aa Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Mon, 7 Oct 2024 09:56:52 +0800 Subject: [PATCH 1/4] [add] add rehype-katex-notranslate plugin for docs --- doc/plugins.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/plugins.md b/doc/plugins.md index 93ba6bfa..cfbd7833 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -8,10 +8,12 @@ This page lists existing plugins. ## Contents -* [List of plugins](#list-of-plugins) -* [List of utilities](#list-of-utilities) -* [Use plugins](#use-plugins) -* [Create plugins](#create-plugins) +- [Plugins](#plugins) + - [Contents](#contents) + - [List of plugins](#list-of-plugins) + - [List of utilities](#list-of-utilities) + - [Use plugins](#use-plugins) + - [Create plugins](#create-plugins) ## List of plugins @@ -92,6 +94,8 @@ The list of plugins: — resolve line breaks in Chinese paragraphs * [`rehype-katex`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-katex) — render math with KaTeX +* [`rehype-katex-notranslate`](https://github.com/PrinOrange/rehype-katex-notranslate) + — Add the attribute translate="no" to the katex blocks to prevent the them from being translated by webpage translation tools. * [`rehype-lodash-template`](https://github.com/viktor-yakubiv/rehype-lodash-template) — replace template strings with values from the dictionary * [`rehype-mathjax`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-mathjax) From c760eda6831767d6d5ea2a8b31d6a2bdc8af9285 Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Mon, 7 Oct 2024 19:17:56 +0800 Subject: [PATCH 2/4] [chores]: format the document --- doc/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/plugins.md b/doc/plugins.md index cfbd7833..d2478c9d 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -95,7 +95,7 @@ The list of plugins: * [`rehype-katex`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-katex) — render math with KaTeX * [`rehype-katex-notranslate`](https://github.com/PrinOrange/rehype-katex-notranslate) - — Add the attribute translate="no" to the katex blocks to prevent the them from being translated by webpage translation tools. + — Add `translate="no"` to KaTeX blocks to prevent translation. * [`rehype-lodash-template`](https://github.com/viktor-yakubiv/rehype-lodash-template) — replace template strings with values from the dictionary * [`rehype-mathjax`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-mathjax) From d38f8df2ad4945b69c15e61cb03877871e501510 Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Mon, 7 Oct 2024 22:58:51 +0800 Subject: [PATCH 3/4] [fix] remove unwanted toc item --- doc/plugins.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/plugins.md b/doc/plugins.md index d2478c9d..8e2836e0 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -8,12 +8,10 @@ This page lists existing plugins. ## Contents -- [Plugins](#plugins) - - [Contents](#contents) - - [List of plugins](#list-of-plugins) - - [List of utilities](#list-of-utilities) - - [Use plugins](#use-plugins) - - [Create plugins](#create-plugins) +* [List of plugins](#list-of-plugins) +* [List of utilities](#list-of-utilities) +* [Use plugins](#use-plugins) +* [Create plugins](#create-plugins) ## List of plugins From b0e9a72e6c6777b2808ab2c135091a00cbd14775 Mon Sep 17 00:00:00 2001 From: Titus Date: Mon, 7 Oct 2024 17:15:37 +0200 Subject: [PATCH 4/4] Update doc/plugins.md Signed-off-by: Titus --- doc/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/plugins.md b/doc/plugins.md index 8e2836e0..cab64965 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -93,7 +93,7 @@ The list of plugins: * [`rehype-katex`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-katex) — render math with KaTeX * [`rehype-katex-notranslate`](https://github.com/PrinOrange/rehype-katex-notranslate) - — Add `translate="no"` to KaTeX blocks to prevent translation. + — add `translate="no"` to KaTeX blocks to prevent translation * [`rehype-lodash-template`](https://github.com/viktor-yakubiv/rehype-lodash-template) — replace template strings with values from the dictionary * [`rehype-mathjax`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-mathjax)