mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
This fixes invalid HTML where figure tag is inside p tag. However, this does not fix linked images, e.g., `[](url)`. The cleanest way to resolve linked images is using markdown-attributes, but markdown-attributes is not recommended by CommonMark. See: - https://discourse.gohugo.io/t/how-to-do-wrap-img-with-a-inside-figure-with-render-image-html/44843 - https://github.com/gohugoio/hugo/blob/master/markup/goldmark/images/transform.go - https://gohugo.io/content-management/markdown-attributes/ - https://github.com/commonmark/commonmark-spec/wiki/Deployed-Extensions#attributes
24 lines
487 B
TOML
24 lines
487 B
TOML
# -- Markup --
|
|
# These settings are required for the theme to function.
|
|
|
|
[goldmark]
|
|
[goldmark.parser]
|
|
wrapStandAloneImageWithinParagraph = false
|
|
|
|
[goldmark.renderer]
|
|
unsafe = true
|
|
|
|
[goldmark.extensions]
|
|
[goldmark.extensions.passthrough]
|
|
enable = true
|
|
[goldmark.extensions.passthrough.delimiters]
|
|
block = [['\[', '\]'], ['$$', '$$']]
|
|
inline = [['\(', '\)']]
|
|
|
|
[highlight]
|
|
noClasses = false
|
|
|
|
[tableOfContents]
|
|
startLevel = 2
|
|
endLevel = 4
|