From 62ae83b7513c2c6c8bd857b7ed5f9f2f47512b43 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sat, 25 Jul 2020 18:20:25 +0800 Subject: Update LaTeX shortcode --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index ccb029c..0a2468d 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Now supported i18n langs: en, zh-hans, zh-hant, ja, nl, pt-pt. Check the i18n fo - [🎨 Favicon](#-favicon) - [❌ License, toc und comments](#-license-toc-und-comments) - [🎵 APlayer](#-aplayer) + - [📐 Render LaTeX with KaTex](#-image-zoom-and-lazyload-settings) - [📷 Image zoom and lazyload settings](#-image-zoom-and-lazyload-settings) - [⚓ Markdown render hook](#-markdown-render-hook) - [📨 Comments area](#-comments-area) @@ -115,6 +116,40 @@ In-post APlayer supported, you can set these variables in post's front matter: playerCover = "..." ``` +### 📐 Render LaTeX with KaTex + +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} +{{}} +``` + ### 📷 Image zoom and lazyload settings Zoomable, not lazyloaded: -- cgit v1.2.3