Closed macfreek closed 3 years ago
Given that there are reasonable work-around for all three issues, I will close this as a wontfix
. If you feel one of these should be fixed, feel free to propose a solution and reopen the issue.
For the first issue, you may want to followup on the (now outdated) bug report I posted at the Github community.
There are three (minor) potential problems with line number in code blocks. I list them here for reference.
code-block
withlinenos
parameter. (Seecode-block-linenos
test file). It does showcode-block
withoutlinenos
parameter. (Seecode-block
test file), and also showscode
directive withnumber-lines
parameter. (Seecode-number-lines
test file). Since restbuilder outputs acode
directive, this should work.code
directive withnumber-lines
parameter, Sphinx renders the numbers inline, and thenumber-lines
is dropped. Your formatter may not render the line numbers as you prefer. If this is an issue, upgrade to Sphinx 2 or higher.code-block
without language (e.g... code-block::
instead of.. code-block:: python
). This is a limitation in Sphinx 1.x, and can not be circumvented. Either upgrade to Sphinx 2 or higher, use a plain block literal (the::
construct), or use the.. code::
directive.