mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
See #10492
This commit is contained in:
@@ -84,7 +84,16 @@ PlainText
|
|||||||
: The plain variant of the above.
|
: The plain variant of the above.
|
||||||
|
|
||||||
Attributes (map)
|
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
|
### Link with title Markdown example
|
||||||
|
|
||||||
|
@@ -1572,7 +1572,8 @@
|
|||||||
"attribute": {
|
"attribute": {
|
||||||
"title": true,
|
"title": true,
|
||||||
"block": false
|
"block": false
|
||||||
}
|
},
|
||||||
|
"wrapStandAloneImageWithinParagraph": true
|
||||||
},
|
},
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"typographer": true,
|
"typographer": true,
|
||||||
@@ -1722,7 +1723,8 @@
|
|||||||
},
|
},
|
||||||
"funcs": {
|
"funcs": {
|
||||||
"getenv": [
|
"getenv": [
|
||||||
"^HUGO_"
|
"^HUGO_",
|
||||||
|
"^CI$"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"http": {
|
"http": {
|
||||||
@@ -3632,7 +3634,7 @@
|
|||||||
"Aliases": null,
|
"Aliases": null,
|
||||||
"Examples": [
|
"Examples": [
|
||||||
[
|
[
|
||||||
"{{- $m := newScratch -}}\n{{- $m.Set \"Hugo\" \"Rocks!\" -}}\n{{- $m.Values | debug.Dump | safeHTML -}}",
|
"{{ $m := newScratch }}\n{{ $m.Set \"Hugo\" \"Rocks!\" }}\n{{ $m.Values | debug.Dump | safeHTML }}",
|
||||||
"map[string]interface {}{\n \"Hugo\": \"Rocks!\",\n}"
|
"map[string]interface {}{\n \"Hugo\": \"Rocks!\",\n}"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user