From 73a776cccb9d1a993da6910c20166bafdd5c731e Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sat, 25 Jul 2020 18:24:04 +0800 Subject: Update README --- README_CN.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'README_CN.md') diff --git a/README_CN.md b/README_CN.md index 52200ab..e5a135d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -20,6 +20,7 @@ - [🎨 站点图标](#-站点图标) - [❌ License、目录和评论区](#-license目录和评论区) - [🎵 文章音乐](#-文章音乐) + - [📐 LaTeX 渲染](#-latex-渲染) - [📷 图片放大的设置和 lazyload](#-图片放大的设置和-lazyload) - [⚓ Markdown 钩子](#-markdown-钩子) - [📨 评论区](#-评论区) @@ -105,6 +106,42 @@ showComments = false # 对这篇文章关闭评论 playerCover = "..." ``` +### 📐 LaTeX 渲染 + +You can write LaTeX directly in markdown with escape characters: + +```txt +$$ +\begin{matrix} + a & b \\\\ c & d +\end{matrix} +$$ +``` + +Or use the short code, display style: + +```txt +{{< math >}} +\begin{matrix} + a & b \\ + c & d +\end{matrix} +{{}} +``` + +Inline style: + +```txt +{{< math "inline" >}} +\begin{matrix} + a & b \\ + c & d +\end{matrix} +{{}} +``` + +Don't forget to add `math = true` in your front matter or `config.toml`. + ### 📷 图片放大的设置和 lazyload 可放大,非 lazyload: -- cgit v1.2.3