hugo/markup
Bjørn Erik Pedersen 63126c6359 markup/goldmark: Add removeSurroundingParagraph for Markdown images
* Removes any surrounding paragraph nodes
* And transfers any attributes from the surrounding paragraph down to the image node
* Adds IsBlock and Ordinal (zero based) field to the image context passed to the image render hooks

IsBlock is set to true if `wrapStandAloneImageWithinParagraph = false` and  the image's parent node has only one child.

Closes #8362
Fixes #10492
Fixes #10494
Fixes #10501
2022-12-05 15:00:47 +01:00
..
asciidocext Add some basic security policies with sensible defaults 2021-12-16 09:40:22 +01:00
blackfriday Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
converter markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
goldmark markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
highlight Add a cache for lexers.Get 2022-11-24 13:18:33 +01:00
internal markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
markup_config Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00
org Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
pandoc Add some basic security policies with sensible defaults 2021-12-16 09:40:22 +01:00
rst Add some basic security policies with sensible defaults 2021-12-16 09:40:22 +01:00
tableofcontents markup: Rename Header(s) to Heading(s) in ToC struct 2021-06-19 18:19:46 +02:00
markup.go helpers: Fix panic with invalid defaultMarkdownHandler 2022-06-04 17:47:20 +02:00
markup_test.go Remove Blackfriday markdown engine 2022-05-29 11:50:58 +02:00