mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
Update references to render hooks
https://gohugo.io/about/features/#content-authoring https://gohugo.io/render-hooks/introduction/
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
85a3d9958d
commit
bf42bbe6b1
@@ -49,7 +49,7 @@ toc: true
|
||||
: Leverage the embedded Markdown extensions to create tables, definition lists, footnotes, task lists, inserted text, mark text, subscripts, superscripts, and more.
|
||||
|
||||
[Markdown render hooks]
|
||||
: Override the conversion of Markdown to HTML when rendering fenced code blocks, headings, images, and links. For example, render every standalone image as an HTML `figure` element.
|
||||
: Override the conversion of Markdown to HTML when rendering blockquotes, fenced code blocks, headings, images, and links. For example, render every standalone image as an HTML `figure` element.
|
||||
|
||||
[Diagrams]
|
||||
: Use fenced code blocks and Markdown render hooks to include diagrams in your content.
|
||||
|
||||
@@ -13,6 +13,7 @@ weight: 20
|
||||
|
||||
When rendering Markdown to HTML, render hooks override the conversion. Each render hook is a template, with one template for each supported element type:
|
||||
|
||||
- [Blockquotes](/render-hooks/blockquotes)
|
||||
- [Code blocks](/render-hooks/code-blocks)
|
||||
- [Headings](/render-hooks/headings)
|
||||
- [Images](/render-hooks/images)
|
||||
@@ -54,6 +55,7 @@ Each render hook is a template, with one template for each supported element typ
|
||||
layouts/
|
||||
└── _default/
|
||||
└── _markup/
|
||||
├── render-blockquote.html
|
||||
├── render-codeblock.html
|
||||
├── render-heading.html
|
||||
├── render-image.html
|
||||
|
||||
Reference in New Issue
Block a user