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

Interpreting HTML #440

Closed
grobmeier opened this issue Dec 3, 2014 · 2 comments
Closed

Interpreting HTML #440

grobmeier opened this issue Dec 3, 2014 · 2 comments

Comments

@grobmeier
Copy link

In reference to this issue:
jekyll/jekyll#2854

Redcarpet has started to interpret some html/js code as Markdown which it didn't do before. My change was to update Jekyll, which maybe has also updated the dependency to Redcarpet.

Please see this script:
https://gist.github.com/grobmeier/f2222332ffe86dbf485c

Which outputs:

ruby app.rb
<p><script type="text/javascript">
    google<em>ad</em>client = &quot;ca-pub-000000000&quot;;
    google<em>ad</em>slot = &quot;000000000&quot;;
    google<em>ad</em>width = 1;
    google<em>ad</em>height = 1;
</script></p>

I had to remove Redcarpet from my Jekyll installation and use Kramdown which works as expected.

robin850 added a commit that referenced this issue Dec 6, 2014
This commit addresses a regression introduced in 108e65d that made the
`script` tag to be considered as a non-block-level element so it was
wrapped inside a paragraph.

Fixes #440.
@robin850
Copy link
Collaborator

robin850 commented Dec 6, 2014

Hi @grobmeier,

Thanks for spotting this ; actually this is a regression that has been introduced with #331 but this is now fixed and this will be available as soon as Redcarpet 3.2.2 gets uploaded to Rubygems. :-)

@grobmeier
Copy link
Author

Awesome, thanks!

This issue was closed.
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