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

Hints in Contribution section #148

Open
terjanq opened this issue Feb 25, 2023 · 1 comment
Open

Hints in Contribution section #148

terjanq opened this issue Feb 25, 2023 · 1 comment
Labels
bug Markdown Bug / other

Comments

@terjanq
Copy link
Member

terjanq commented Feb 25, 2023

Looks like hint boxes in Contribution section are broken.

image

@terjanq terjanq added the bug Markdown Bug / other label Feb 25, 2023
@aaronshim
Copy link
Contributor

This has been a problem since the v0.100 release of Hugo (I found it by bisecting known-good versions.) The likely cause is their attempted implementation of gohugoio/hugo#6703, which affects both markdownify and .Page.RenderString. The original authors of the book theme also ran into this problem at alex-shpak/hugo-book#452, which they solved with alex-shpak/hugo-book@6e1b44c.

This issue is also mentioned in #152.

My best attempt is to do a similar escape sequence as alex-shpak/hugo-book@6e1b44c (many other escape sequences, even safeHTML, do not work, as the final markdownify will attempt to render the {{< hint >}} shortcode regardless of what surrounds it), but it renders some of the extra escape sequences on the page, so we do have to do a bit of replace magic to get it back out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Markdown Bug / other
Projects
None yet
Development

No branches or pull requests

2 participants