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

Make pandoc spit out "code-block" instead of "code" #28

Closed
mgeier opened this issue Mar 1, 2016 · 0 comments
Closed

Make pandoc spit out "code-block" instead of "code" #28

mgeier opened this issue Mar 1, 2016 · 0 comments

Comments

@mgeier
Copy link
Member

mgeier commented Mar 1, 2016

The code directive is not officially supported by Sphinx, therefore the highlight_language option I used in 77dc80e is not working.

Either this issue has to be fixed in Sphinx: sphinx-doc/sphinx#2155 (which, according to the comments, seems unlikely), or we have to make pandoc (which is used in markdown2rst) generate code-block instead of code directives.

All this only affects code within Markdown cells, the actual code cells are handled separately (not by pandoc).

For reference:
http://docutils.sourceforge.net/docs/ref/rst/directives.html#code
http://www.sphinx-doc.org/en/stable/markup/code.html

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

1 participant