-
Notifications
You must be signed in to change notification settings - Fork 1.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
every first line of a Markdown code block is rendering with 2 extra leading spaces #560
Comments
Would you provide an example that generates the awkward HTML? |
Even the tiniest snippet at the top of otherwise empty page will do it. E.g., this is good enough: ....foo (where the periods are spaces) Note that in preview mode it looks fine, it's only after it's saved and rendering in view mode that the stray prefix spaces on the first line of each code block appear. |
It turned out to be an issue with nokogiri's |
The fix will be in the next gollum release. |
Fixed in Gollum 2.3.4. |
Thanks for addressing it! |
Using markdown, in code blocks that are defined with the 4-space leading indent, I am seeing 2 spaces inserted after the
pre
tag and before thecode
tag. This makes every first line render awkwardly.I.e., View Source on the HTML shows something like this:
<pre>
<code>
Seems like those 2 spaces should be stripped.
The text was updated successfully, but these errors were encountered: