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

github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author南小北 <nanxiaobei@gmail.com>2022-02-13 19:09:31 +0300
committerGitHub <noreply@github.com>2022-02-13 19:09:31 +0300
commitddd21645f1dc1e68c4982d8b1644b5cbb6387e5d (patch)
treee1da9b074fa47aa9c5920858abc8564c5e1916a9
parenta55bfe76d4b786c156b562f6ec8ee81d3ab41a0f (diff)
parent74e87565aadf7727c4cf0c0f582ac473613f1282 (diff)
Merge pull request #102 from deining/contrib
Demo site: correct rendering of subscript, superscript and other raw html markup
-rw-r--r--exampleSite/.gitignore1
-rw-r--r--exampleSite/config.toml6
2 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore
index 62fc17f..66500fd 100644
--- a/exampleSite/.gitignore
+++ b/exampleSite/.gitignore
@@ -27,3 +27,4 @@ _testmain.go
/public
/themes
.DS_Store
+.hugo_build.lock \ No newline at end of file
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index da194ab..428a939 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -20,6 +20,12 @@ title = "Paper"
instagram = 'nan.xiaobei'
# ------------------------------
+# needed to render raw HTML (e.g. <sub>, <sup>, <kbd>, <mark>)
+[markup]
+ [markup.goldmark]
+ [markup.goldmark.renderer]
+ unsafe = true
+
[menu]
[[menu.main]]