Demonstration
Some demos of how restructuredtext rendering looks.
The demos are possible because rich has the feature to save console output to html files
Demo Files
Console Output
Raw RST (Input)
Parameters Used
The following command was used the generate every file except rich_introduction.rst
On Windows:
rich_rst .\demo\filename.rst ^
--save-html .\demo\filename.html ^
--code-theme dracula ^
--default-lexer rst ^
--soft-wrap ^
--hide-errors
On Linux/Mac
rich_rst ./demo/filename.rst \
--save-html ./demo/filename.html \
--code-theme dracula \
--default-lexer rst \
--soft-wrap \
--hide-errors
Note
There are aliases available for those parameters
For rich_introduction.rst
, The -dl parameter was set to python
Sources
Original HTML
directives.rst
:
https://docutils.sourceforge.io/docs/ref/rst/directives.htmlspecification.rst
:
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.htmlintroduction.rst
:
https://docutils.sourceforge.io/docs/ref/rst/introduction.htmlmathematics.rst
:
https://docutils.sourceforge.io/docs/ref/rst/mathematics.htmlrich_introduction.rst
:
https://rich.readthedocs.io/en/latest/introduction.htmlOriginal RST
directives.rst
:
https://docutils.sourceforge.io/docs/ref/rst/directives.txtspecification.rst
:
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.txtintroduction.rst
:
https://docutils.sourceforge.io/docs/ref/rst/introduction.txtmathematics.rst
:
https://docutils.sourceforge.io/docs/ref/rst/mathematics.txtrich_introduction.rst
:
https://github.com/Textualize/rich/raw/master/docs/source/introduction.rst