hugo/markup/goldmark
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
..
codeblocks Add a cache for lexers.Get 2022-11-24 13:18:33 +01:00
goldmark_config markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
images markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
internal markup/goldmark: Fix attribute nilpointer 2022-04-27 23:53:56 +02:00
links markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
autoid.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
autoid_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
convert.go markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
convert_test.go deps: Upgrade github.com/alecthomas/chroma/v2 v2.4.0 2022-11-19 11:55:30 +01:00
integration_test.go markup/goldmark: Improve benchmark 2022-11-24 12:04:44 +01:00
render_hooks.go markup/goldmark: Add removeSurroundingParagraph for Markdown images 2022-12-05 15:00:47 +01:00
toc.go markup: Rename Header(s) to Heading(s) in ToC struct 2021-06-19 18:19:46 +02:00
toc_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00