-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add include, substitution and admonition support reST markup #223
Comments
The features that I've particularly missed: "include" and "admonition". I still have to use rst2html.py for my documents that use these features. #t Google Code Info: |
I'm particularly missing the "class" directive, especially in conjunction with code .. class:: special This is a special paragraph. For code blocks, you need to do this: .. class:: python :: def some_python_function(): Google Code Info: |
An alternative for nicer handling of code blocks would be the custom 'code-block' .. code-block:: python def some_python_function(): Google Code Info: |
I would love full support for reStructuredText too. One thing I'm missing is support for substitution definitions: http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution-definitions with image and replace directives. |
Agreed with the above comments, and would like to refresh this issue. I'd dearly love to see reStructuredText's I'm currently getting around this by using Substitution support would be great, too. |
Let me add another vote for this 👍 |
To summarise, missing features are
The latter two should be easy to implement. The first requires some more machinery I am currently thinking about. |
I would suggest that |
What's the state on the `.. include::`` directive? |
Currently this would require adding a |
TODO: handle the options (see comment in code). See #223.
include is now implemented in the It shouldn't be too hard to implement admonition and substitution as well. |
TODO: handle the options (see comment in code). See #223.
TODO: handle the options (see comment in code). See #223.
TODO: handle the options (see comment in code). See #223.
TODO: handle the options (see comment in code). See #223.
TODO: handle the options (see comment in code). See #223.
We've got admonitions now. |
* We no longer add an "admonition" class, we just use the class for the type of admonition, "note" for example. * We put the word corresponding to the label in a paragraph inside a div at the beginning of the admonition with class "admonition-title". * This is about as close as we can get to RST's own output. See #223.
And we've had substitutions for a long time. I think this issue can now finally be closed! |
DZSlides: Force word wrapping in code tags
There is no |
I think the typeclass branch has been merged into current master already... |
And does the release |
You can try the nightly build: https://github.com/pandoc-extras/pandoc-nightly/releases |
Got pandoc v1.19.2.4, no "include" support. Since which version it was added? |
Just get the newest pandoc from https://github.com/jgm/pandoc/releases |
Two question regarding the
|
Can you do this in RST? If so, try the same syntax with pandoc and see if it works. IF not, we should support it, but open a new issue.
I'm not sure what you mean here; relative paths should work, but pandoc interprets them relative to the working directory (or any |
@jgm continuing the conversation in two separate threads. |
The text was updated successfully, but these errors were encountered: