Skip to content

Commit

Permalink
fix: some math formulas can not be displayed (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiJimmy authored Sep 7, 2024
1 parent df1f51e commit 181329f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/_default/markup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
[goldmark.renderer]
unsafe = true

[goldmark.extensions.passthrough]
enable = true

# LaTeX math support
# https://gohugo.io/content-management/mathematics/
[goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]

[tableOfContents]
endLevel = 4
ordered = true
Expand All @@ -14,4 +23,4 @@ guessSyntax = true
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
tabWidth = 4
tabWidth = 4

0 comments on commit 181329f

Please sign in to comment.