-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Smart quote rendering should not happen inside HTML <code> blocks in Markdown content #9911
Comments
@jmooring That's awesome! Thanks for taking time to come up with that bug recipe in Go. You are filling my Go-fu void 😃 . |
The upstream maintainer is reluctant to make any changes. I'm not sure where that leaves us. |
Closing this as it's out of the scope of Hugo. I have a workaround for this problem .. use span tags around Markdown's quoted syntax for inline code blocks. Below renders without the typographer messing up the quotes: In Nim, <span class="inline-src language-nim" data-lang="nim">`echo "hello"`</span> will print _hello_. |
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. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Bug Recipe
Put this in your Markdown content file
Deployed test showing this issue
Expected output
The double quotes inside the HTML
<code>
block should have remained the exact same, as straight quotes.Observed (incorrect) behavior
Those double quotes are getting transformed into curved quotes, probably by GoldMark.
References
src_foo
blocks know their language kaushalmodi/ox-hugo#638 (comment)The text was updated successfully, but these errors were encountered: