We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.. include:: file.py
:code: python
Currently if I include a file using:
test.rst
Include Example =============== .. include:: test.py :code: python
test.py
def hello_world(): """Doc string""" print("Hello World!")
Result using rst2html is
rst2html
Result of rst2pdf is
rst2pdf
Description of problem
I know there is
.. code-block:: python :include: test.py
That works just fine
but unfortunately docutils doesn't support code-block.
code-block
For now I just have two versions for each included file in my documents and do bulk comment/uncomment depending on media type I am to export to.
It would be really nice if rst2pdf could work with .. include:: ...\n :code: lang as well.
.. include:: ...\n :code: lang
🖥 Versions
python -V: 3.11.2
python -V
3.11.2
pip freeze | grep rst2pdf: 0.101
pip freeze | grep rst2pdf
pip freeze | grep reportlab: 4.1.0
pip freeze | grep reportlab
Which operating system are you using?
Debian bookworm
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I'd be very happy to review pull requests on this if anyone has time to work on it.
Sorry, something went wrong.
No branches or pull requests
Currently if I include a file using:
test.rst
test.py
Result using
rst2html
isResult of
rst2pdf
isDescription of problem
I know there is
That works just fine
but unfortunately docutils doesn't support
code-block
.For now I just have two versions for each included file in my documents and do bulk comment/uncomment depending on media type I am to export to.
It would be really nice if rst2pdf could work with
.. include:: ...\n :code: lang
as well.🖥 Versions
python -V
:3.11.2
pip freeze | grep rst2pdf
: 0.101pip freeze | grep reportlab
: 4.1.0Which operating system are you using?
Debian bookworm
The text was updated successfully, but these errors were encountered: