Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cayman-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zwbetz@gmail.com>2019-06-11 17:57:03 +0300
committerzwbetz <zwbetz@gmail.com>2019-06-11 17:57:03 +0300
commit8917303c3be2f003f35d584f38a6a9ebea5903f6 (patch)
treeada827599df477ebdebbed89173bce874633b140
parentbebe5aa694a2d21fa5c8e5ac04b8b56e360a341a (diff)
Fix katex inline math with mmark
-rw-r--r--exampleSite/content/post/katex-math-typesetting/index.md29
-rw-r--r--exampleSite/content/post/katex-math-typesetting/index.mmark31
2 files changed, 31 insertions, 29 deletions
diff --git a/exampleSite/content/post/katex-math-typesetting/index.md b/exampleSite/content/post/katex-math-typesetting/index.md
deleted file mode 100644
index d4a368e..0000000
--- a/exampleSite/content/post/katex-math-typesetting/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-title: "Katex Math Typesetting"
-date: 2019-03-28
-tags: [katex, math, typesetting, hugo]
----
-
-Enable Katex in the config file by setting the `katex` param to `true`. This will import the necessary Katex CSS/JS.
-
-**Note:** Use the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
-
-Some math:
-
-```
-$$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
-```
-
-$$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
-
-More math:
-
-```
-$$
-\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
-$$
-```
-
-$$
-\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
-$$
diff --git a/exampleSite/content/post/katex-math-typesetting/index.mmark b/exampleSite/content/post/katex-math-typesetting/index.mmark
new file mode 100644
index 0000000..6ac5629
--- /dev/null
+++ b/exampleSite/content/post/katex-math-typesetting/index.mmark
@@ -0,0 +1,31 @@
+---
+title: "Katex Math Typesetting"
+date: 2019-03-28
+tags: [katex, math, typesetting, hugo]
+---
+
+Enable Katex in the config file by setting the `katex` param to `true`. This will import the necessary Katex CSS/JS.
+
+See the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
+
+**Note:** For inline math to render correctly, your content file extension must be `.mmark`. See the [official mmark site](https://mmark.nl/).
+
+```
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+```
+
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+
+```
+Block math:
+
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
+```
+
+Block math:
+
+$$
+\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$