Age | Commit message (Collapse) | Author |
|
CodeBlock
Fixes #10118
|
|
Fixes 9819
|
|
See #9626
|
|
For the Position in code blocks we try to match the .Inner with the original source. This isn't always possible.
This commits avoids panics in these situations.
Fixes #9627
|
|
Not perfect, but it gets it in line with the other .Inner/.Wrapped combos.
|
|
To make it possible to render it with a custom HTML ("<div>") wrapper.
Updates #9573
|
|
Fixes #9577
|
|
|
|
Fixes #9571
|
|
But note that this is not particulary fast and the recommendad usage is error logging only.
Updates #9574
|
|
|
|
Fixes #9572
|
|
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).
We also used this new hook to add support for diagrams in Hugo:
* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.
Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
|