-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fence code blocks rendering bug #204
Comments
Example: would you know the regex to use within .muttrc to colorise a Markdown code block like the one below?
|
Oh the above rendering worked just fine on Github, but falls over when you place the sample itself inside a code fence. |
This is the html I get: <p>would you know the regex to use within .muttrc to colorise a Markdown code block like the one below?</p>
<pre><code># This one works for `code`, but that's about it.
(^|[[:space:][:punct:]])\`[^\`]+\`([[:space:][:punct:]]|$)
</code></pre> Which seems correct to me. What do you get and what do you expect? |
This is what I end up with:
I'm not actually sure what's going on here just yet... I need to analyze this a bit. Something is going wrong in this process and it may not be your library's fault 😂 |
Here's the code to get the result I got: https://github.com/gomarkdown/markdown/blob/master/cmd/printast/main.go#L44 You might be pre-processing markdown before passing it to parser, postprocessing the html you get from the renderer or using different parser or renderer flags. |
I'll dig a bit further and get back to you 👌 |
The following piece of Markdown does not render correctly:
Hilariously it doesn't seem to render correctly with Github's own Markdown support in comments either 😂
foo.md
The text was updated successfully, but these errors were encountered: