diff options
Diffstat (limited to 'docs/content/en/render-hooks/introduction.md')
-rwxr-xr-x | docs/content/en/render-hooks/introduction.md | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/docs/content/en/render-hooks/introduction.md b/docs/content/en/render-hooks/introduction.md index d086c91bb..045d25c3d 100755 --- a/docs/content/en/render-hooks/introduction.md +++ b/docs/content/en/render-hooks/introduction.md @@ -1,14 +1,9 @@ --- title: Introduction description: An introduction to Hugo's render hooks. -categories: [render hooks] +categories: [] keywords: [] -menu: - docs: - identifier: render-hooks-introduction - parent: render-hooks - weight: 20 -weight: 20 +weight: 10 --- When rendering Markdown to HTML, render hooks override the conversion. Each render hook is a template, with one template for each supported element type: @@ -21,13 +16,10 @@ When rendering Markdown to HTML, render hooks override the conversion. Each rend - [Passthrough elements](/render-hooks/passthrough) - [Tables](/render-hooks/tables) -{{% note %}} -Hugo supports multiple [content formats] including Markdown, HTML, AsciiDoc, Emacs Org Mode, Pandoc, and reStructuredText. - -The render hook capability is limited to Markdown. You cannot create render hooks for the other content formats. - -[content formats]: /content-management/formats/ -{{% /note %}} +> [!note] +> Hugo supports multiple [content formats] including Markdown, HTML, AsciiDoc, Emacs Org Mode, Pandoc, and reStructuredText. +> +> The render hook capability is limited to Markdown. You cannot create render hooks for the other content formats. For example, consider this Markdown: @@ -37,7 +29,7 @@ For example, consider this Markdown:  ``` -Without link or image render hooks, this example above is rendered to: +Without link or image render hooks, the example above is rendered to: ```html <p><a href="https://gohugo.io">Hugo</a></p> @@ -85,3 +77,5 @@ layouts/ ``` The remaining pages in this section describe each type of render hook, including examples and the context received by each template. + +[content formats]: /content-management/formats/ |