Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdownimage.Ordinal #10501

Closed
bep opened this issue Dec 5, 2022 · 1 comment
Closed

Add markdownimage.Ordinal #10501

bep opened this issue Dec 5, 2022 · 1 comment

Comments

@bep
Copy link
Member

bep commented Dec 5, 2022

Like we have on code blocks.

@bep bep added the Enhancement label Dec 5, 2022
@bep bep added this to the v0.108.0 milestone Dec 5, 2022
bep added a commit to bep/hugo that referenced this issue Dec 5, 2022
* 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 gohugoio#8362
Fixes gohugoio#10492
Fixes gohugoio#10494
Fixes gohugoio#10501
@bep bep closed this as completed in 63126c6 Dec 5, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant