We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reference: https://discourse.gohugo.io/t/image-block-attribute-disappears-with-0-123-x/48677
Test case:
func TestFoo(t *testing.T) { t.Parallel() files := ` -- config.toml -- disableKinds = ['page','rss','section','sitemap','taxonomy','term'] [markup.goldmark.parser] wrapStandAloneImageWithinParagraph = false [markup.goldmark.parser.attribute] block = true [languages.en] # weight = 1 -- content/_index.md -- ![alt](a.jpg) {.foo} -- layouts/index.html -- {{ .Content }} ` b := hugolib.Test(t, files) b.AssertFileContent("public/index.html", `<img src="a.jpg" alt="alt" class="foo">`) files = strings.Replace(files, "# weight", "weight", -1) b = hugolib.Test(t, files) b.AssertFileContent("public/index.html", `<img src="a.jpg" alt="alt" class="foo">`) // failing test }
The text was updated successfully, but these errors were encountered:
tpl/tplimpl: Honor markdown attributes in embedded image render hook
28d1441
Fixes gohugoio#12203
632ad74
Fixes #12203
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.
Sorry, something went wrong.
jmooring
Successfully merging a pull request may close this issue.
Reference: https://discourse.gohugo.io/t/image-block-attribute-disappears-with-0-123-x/48677
Test case:
The text was updated successfully, but these errors were encountered: