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

Code blocks with HTML entity codes are processed wrong #85

Closed
mseckington opened this issue Oct 2, 2013 · 1 comment
Closed

Code blocks with HTML entity codes are processed wrong #85

mseckington opened this issue Oct 2, 2013 · 1 comment
Assignees

Comments

@mseckington
Copy link

Currently code blocks that contain HTML entity codes are not being displayed correctly.

If my markdown is this:

 1 < 2

It turns it into the following html:

 <pre><code> 1 &amp;lt; 2\n</code></pre>\n

So the & in &lt; is being replaced with its own entity code, which isn't the expected behaviour.

@ghost ghost assigned gettalong Oct 2, 2013
@gettalong
Copy link
Owner

Just use the < character since in code blocks and in inline code spans all characters are taken literally:

This is a literal > greater sign and a &gt; greater than entity

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

No branches or pull requests

2 participants