rst2html
Convert reStructuredText to HTML
TLDR
Convert RST to HTML
$ rst2html [input.rst] [output.html]
Convert to stdout$ rst2html [input.rst]
With stylesheet$ rst2html --stylesheet=[style.css] [input.rst] [output.html]
Standalone document$ rst2html --embed-stylesheet [input.rst] [output.html]
SYNOPSIS
rst2html [options] [source] [destination]
DESCRIPTION
rst2html converts reStructuredText documents to HTML. It's part of Docutils, providing the reference implementation for RST processing.
PARAMETERS
--stylesheet file
CSS stylesheet path.--embed-stylesheet
Embed CSS in HTML.--template file
Document template.--no-doc-title
No document title.--strict
Strict mode.--quiet, -q
Suppress warnings.
RST SYNTAX
$ Title
=====
Subtitle
--------
Paragraph text with **bold** and *italic*.
* List item 1
* List item 2
::
Code block
=====
Subtitle
--------
Paragraph text with **bold** and *italic*.
* List item 1
* List item 2
::
Code block
INSTALL
sudo apk add py3-docutils
CAVEATS
Part of Docutils package (python-docutils). Multiple variants: rst2html, rst2html4, rst2html5.
HISTORY
rst2html is part of Docutils by David Goodger and contributors, implementing reStructuredText processing.
SEE ALSO
sphinx-build(1), pandoc(1)