Html5 writer¶
Original code is from ‘Bradley Wright’ on Github :
https://github.com/bradleywright/rst-to-semantic-html5
Stealed and modified because i wanted to keep <section/>
behavior but not
to follow the same way than ‘rst-to-semantic-html5’.
-
class
rstview.html5writer.
SemanticHTML5Translator
(document)[source]¶ This is a translator class for the docutils system. It will produce a minimal set of html output. (No extra divs, classes over ids.)
It also aims to produce HTML5 (section etc.)
-
class
rstview.html5writer.
SemanticHTML5Writer
[source]¶ This docutils writer will use the SemanticHTML5Translator class below.