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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <ccwangchn@gmail.com>2020-11-21 20:40:53 +0300
committerWang Chucheng <ccwangchn@gmail.com>2020-11-21 20:40:53 +0300
commite6017ec490789408e133175473e6f0fb18164013 (patch)
treed4852687b9093abd0960f31111fed61e39671edb /exampleSite
parentb346260f352021a98e9596b2e2c404c25c5887bd (diff)
style: use primary color for borders inside katexv0.2.0
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config/_default/config.toml2
-rw-r--r--exampleSite/config/_default/params.toml4
-rw-r--r--exampleSite/content/posts/math-support.md47
3 files changed, 51 insertions, 2 deletions
diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml
index f0677c9..e901adb 100644
--- a/exampleSite/config/_default/config.toml
+++ b/exampleSite/config/_default/config.toml
@@ -28,6 +28,8 @@ defaultContentLanguageInSubdir = false
startLevel = 2
endLevel = 6
ordered = false
+ [markup.goldmark.renderer]
+ unsafe = true
[taxonomies]
category = "categories"
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index 2dec32e..0210e83 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -27,9 +27,9 @@ publisherLogo = ""
# [math.katex]
# # Browse https://katex.org/docs/options.html to see the options available.
+ # # KaTeX's Auto-render ignores `displayMode` property of the options, so this property will not work.
# # You can list the key and value you want as below.
- # displayMode = ""
- # output = ""
+ # leqno = ""
[comment]
# Options: disqus and commento.
diff --git a/exampleSite/content/posts/math-support.md b/exampleSite/content/posts/math-support.md
new file mode 100644
index 0000000..533d3b3
--- /dev/null
+++ b/exampleSite/content/posts/math-support.md
@@ -0,0 +1,47 @@
++++
+title = "Math Support"
+description = ""
+toc = true
+authors = ["example-author"]
+tags = []
+categories = []
+series = []
+date = "2020-11-20T22:52:56+08:00"
+lastmod = "2020-11-20T22:52:56+08:00"
+featuredImage = ""
+draft = false
++++
+
+Eureka supports the rendering of mathematical formulas by using KaTeX.
+
+<!--more-->
+
+
+You can type inline equation like $E=mc^2$.
+
+And also displayed equation like:
+
+<div>
+\[ \int u \frac{dv}{dx}\, dx=uv-\int \frac{du}{dx}v\,dx \]
+</div>
+
+
+Matrix:
+
+<div>
+\[ \begin{pmatrix} a&b\\c&d \end{pmatrix} \quad
+\begin{bmatrix} a&b\\c&d \end{bmatrix} \quad
+\begin{Bmatrix} a&b\\c&d \end{Bmatrix} \quad
+\begin{vmatrix} a&b\\c&d \end{vmatrix} \]
+</div>
+
+Aligned equation:
+
+<div>
+\[\begin{aligned}
+x ={}& a+b+c+{} \\
+&d+e+f+g
+\end{aligned}\]
+</div>
+
+And many other kinds of formulas. \ No newline at end of file