Skip to content

Commit

Permalink
Add link to built-in render hook for GoAT diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Nov 21, 2023
1 parent 06f9cd4 commit f7bd43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/functions/diagrams/Goat.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords: []
action:
aliases: []
related: []
returnType: 'diagrams.goatDiagram'
returnType: diagrams.goatDiagram
signatures: ['diagrams.Goat INPUT']
toc: true
---
Expand Down Expand Up @@ -60,9 +60,9 @@ Which appears in your browser as:
'---' '-' '+' '+' '---'
```

In the rendered HTML above, note that the diagram has a predefined font family, and the `svg` element is wrapped within a `div` element with predefined classes.
To customize rendering, override Hugo's [built-in code block render hook] for GoAT diagrams.

To customize rendering, use the `diagrams.Goat` function in a code block [render hook].
[built-in code block render hook]: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html

## Code block render hook

Expand Down

0 comments on commit f7bd43a

Please sign in to comment.