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

Created on 21 Jul 2016  路  1Comment  路  Source: github/markup

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

Most helpful comment

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)

>All comments

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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  7Comments

Istiakmorsalin picture Istiakmorsalin  路  4Comments

schmidtw picture schmidtw  路  4Comments

crabmusket picture crabmusket  路  4Comments

zoffixznet picture zoffixznet  路  6Comments