1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-01-25 03:50:42 +00:00
hugo/markup/goldmark/images
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 
Fixes 
Fixes 
Fixes 
2022-12-05 15:00:47 +01:00
..
integration_test.go markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
transform.go markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00