diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-12-05 16:50:47 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-12-05 16:50:47 +0100 |
commit | de9c5542ca352ce9c50f5218712e61e454f76b0f (patch) | |
tree | d7b74c769d8ea57efd3aed99a897a72ac83065df /docs/content | |
parent | e93138dfdb07dba1b743aa1b374e6fb8d2ba46bf (diff) |
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
See #10492
Diffstat (limited to 'docs/content')
-rw-r--r-- | docs/content/en/templates/render-hooks.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/content/en/templates/render-hooks.md b/docs/content/en/templates/render-hooks.md index 6fae36ad9..69b34cc9b 100644 --- a/docs/content/en/templates/render-hooks.md +++ b/docs/content/en/templates/render-hooks.md @@ -84,7 +84,16 @@ PlainText : The plain variant of the above. Attributes (map) -: A map of attributes (e.g. `id`, `class`) +: A map of attributes (e.g. `id`, `class`). Note that this will currently always be empty for links. + +The `render-image` templates will also receive: + +IsBlock {{< new-in "0.108.0" >}} +: Returns true if this is a standalone image and the config option [markup.goldmark.parser.wrapStandAloneImageWithinParagraph](/getting-started/configuration-markup/#goldmark) is disabled. + +Ordinal {{< new-in "0.108.0" >}} +: Zero-based ordinal for all the images in the current document. + ### Link with title Markdown example |