From f7bd43ae1ac0625977c77ca73df4b993c1342e86 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 21 Nov 2023 15:12:13 -0800 Subject: [PATCH] Add link to built-in render hook for GoAT diagrams --- content/en/functions/diagrams/Goat.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/functions/diagrams/Goat.md b/content/en/functions/diagrams/Goat.md index 6157e05e3..2b31d9824 100644 --- a/content/en/functions/diagrams/Goat.md +++ b/content/en/functions/diagrams/Goat.md @@ -6,7 +6,7 @@ keywords: [] action: aliases: [] related: [] - returnType: 'diagrams.goatDiagram' + returnType: diagrams.goatDiagram signatures: ['diagrams.Goat INPUT'] toc: true --- @@ -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