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

html tag will be escaped with --pygments #63

Open
wdv4758h opened this issue Oct 12, 2014 · 5 comments
Open

html tag will be escaped with --pygments #63

wdv4758h opened this issue Oct 12, 2014 · 5 comments

Comments

@wdv4758h
Copy link

the html tag generated by syntax highlight with --pygments will be escaped,
so something like <div class="highlight"> will become &lt;div class="highlight"&gt;

Python version : 2.7.8

@pcav
Copy link

pcav commented Dec 8, 2014

Duplicate of #46 ?

@meejah
Copy link

meejah commented Feb 4, 2016

I don't think it's a duplicate, and I get the same behavior; e.g. rst2html5 --pygments slides.rst > foo.html will result in unreadable highlighted code, as it's all html-escaped (this is with master as of 0950ae5).

@meejah
Copy link

meejah commented Feb 4, 2016

Okay, so this only happens with a .. code-block:: directive; with .. code:: python for example, it seems to work.

@kakawait
Copy link

Seems to be important issue... .. code-block:: is standard directive

@marianoguerra
Copy link
Owner

marianoguerra commented Jul 19, 2016

here is the directive: https://github.com/marianoguerra/rst2html5/blob/master/html5css3/postprocessors.py#L329

here it' registered: https://github.com/marianoguerra/rst2html5/blob/master/html5css3/postprocessors.py#L438

try commenting were it's registered to see if there's a builtin one, if so, I will remove that one, if not, we can copy the code-block directive from another project of fix the one we have. I don't have time at the moment.

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

5 participants