markup icon indicating copy to clipboard operation
markup copied to clipboard

reStructuredText `code` and `code-block` directives regression

Open ergoithz opened this issue 9 years ago • 2 comments

Confirmed regression of issue #106 reStructuredText code and code-block directives

ergoithz avatar Jul 21 '16 09:07 ergoithz

This seems to be partially working. If I put .. code-block:: python in my RST file, it renders correctly on GitHub. However, if I add the :linenos:, :emphasize-lines:, :caption:, and/or :name: directives to those code blocks, the blocks just disappear. I understand that perhaps GitHub can't do the extra rendering requested by those directives, but, in that case, they should just be ignored no-ops. It definitely should not make the entire code block completely disappear from the rendered document. :-/

(See http://www.sphinx-doc.org/en/stable/markup/code.html)

nickwilliams-eventbrite avatar May 09 '18 17:05 nickwilliams-eventbrite

Any fixes planned ?

berndschatz avatar Mar 08 '23 16:03 berndschatz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 15 '24 12:12 github-actions[bot]

Is this a limitation of docutils?

saper avatar Dec 24 '24 13:12 saper