Re: What classes and ids generates rst2html5?

Guenter Milde via Docutils-users <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2017-09-16, Leonhard Küper wrote:
> Hello.


> I want to generate html from restructuered text and I want to style it.
> What selectors are generated? 

There is no dedicated documentation. You could look in the sources
(modules _html_base.py and html5/__init__.py in docutils/writers/).
The simplest way is to just try it out.

> Are there some tips what the generated
> html could look like and how to style proper?

Have a look at the examples in tests/functional/expected.
There you can also compare html4css1 and html5 output.

The CSS style files in docutils/writers/html5_polyglott/ are also good
examples and comprehensive comments.

Günter



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.