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

Handling of <pre> content is not uniform #337

Closed
sklise opened this issue Jan 24, 2014 · 2 comments
Closed

Handling of <pre> content is not uniform #337

sklise opened this issue Jan 24, 2014 · 2 comments

Comments

@sklise
Copy link

sklise commented Jan 24, 2014

The following:

<pre>
width: 100%; /* comment */
</pre>

is rendered by marked as:

width: 100%; /* comment */

However, if the pre tag is inside another block element:

<div>

<pre>
width: 100%; /* comment */
</pre>

</div>

the output is:

<div>

<pre>
width: 100%; /<em> comment </em>/
</pre>

</div>

So it seems that <pre> tags are not ignored when inside another block element.

Definitely an extreme edge case when writing markdown, but also an inconsistency.

@joshbruce
Copy link
Member

#983

@Feder1co5oave
Copy link
Contributor

I cannot reproduce this on current master v0.3.12:

$ bin/marked 
<pre>
width: 100%; /* comment */
</pre>
^D
<pre>
width: 100%; /* comment */
</pre>

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

3 participants