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

reStructuredText code and code-block directives regression #914

Closed
ergoithz opened this issue Jul 21, 2016 · 4 comments
Closed

reStructuredText code and code-block directives regression #914

ergoithz opened this issue Jul 21, 2016 · 4 comments
Labels

Comments

@ergoithz
Copy link

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

PauloPhagula added a commit to PauloPhagula/send-mail that referenced this issue Jan 22, 2017
TL;DR ReST `code` and `code-block` directives are broken in GH

see github/markup#106
see github/markup#914

Removing `:linenos:` apparently fixes the display issue
nedbass added a commit to nedbass/UnifyCR that referenced this issue Jan 5, 2018
- Allow user to set UNIFYCR_SERVER_DEBUG_LOG to specify the path to the
  server debug log. Previously is was not possible to override the
  hard-coded default value:

  #define DBG_FNAME "/l/ssd/serverdbg"

  This would result in an error message starting unifycrd if the default
  path is unavailable.

- When generating the debug log file name, add a dash "-" before appending
  the rank id.

- Remove some unneeded braces around some nearbyi single-line if
  statements.

- Update example server startup script in the manual to set
  UNIFYCR_SERVER_DEBUG_LOG and UNIFYCR_META_DB_PATH since most people will
  need to set these to get things working.

- Remove :linenos: directives from examples scripts as this apparently
  breaks rendering of reStructuredText code blocks on github.

  See github/markup#106
  See github/markup#914
@nickwilliams-eventbrite
Copy link

nickwilliams-eventbrite commented May 9, 2018

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)

@berndschatz
Copy link

Any fixes planned ?

Copy link

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 github-actions bot added the Stale label Dec 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
@saper
Copy link

saper commented Dec 24, 2024

Is this a limitation of docutils?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants