From c32067e8fc140d141dad46841697be8a99d224ac Mon Sep 17 00:00:00 2001 From: milde Date: Sun, 12 Apr 2015 10:06:43 +0000 Subject: [PATCH] Small HTML fixes and documentation updates. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7865 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/docs/user/html.txt | 26 ++++++++++++++++++----- docutils/docutils/utils/math/__init__.py | 5 +++-- docutils/docutils/utils/math/latex2mathml.py | 11 ++++++++++ docutils/docutils/writers/html_base/html-base.css | 5 +++-- docutils/docutils/writers/xhtml11/__init__.py | 5 +---- docutils/docutils/writers/xhtml11/xhtml11.css | 4 ++-- 6 files changed, 41 insertions(+), 15 deletions(-) diff --git a/docutils/docs/user/html.txt b/docutils/docs/user/html.txt index c83de8c94..ac4ed90a7 100644 --- a/docutils/docs/user/html.txt +++ b/docutils/docs/user/html.txt @@ -63,13 +63,28 @@ For *emphazised* aliases exist ``rst2.py`` `front-end tools`_. .. _front-end tools: tools.html +html +~~~~ + +The writer name `html` is an alias pointing to the "recommended Docutils +HTML writer". Its meaning may change with the development of HTML, browsers +and the web. + +* Use `get_writer_by_name('html') or the ``rst2html.py`` front end, if you + want the output to be up-to-date automatically. + +* Use a more specific writer name or front end, if you depend on stability + of the generated HTML code, e.g. because you use a custom style sheet or + postprocessing that may break otherwise. + + html_base ~~~~~~~~~ .. note:: The name `html_base` will change to a more appropriate one. Candidates are `html_basic` (but beware of confusion with the - `XHTML Basic`_ document type), `html_common`, or simply `html` (name - currently used as alias by `html4css1`_). Suggestions welcome. + `XHTML Basic`_ document type) or `html_common` + Suggestions welcome. :aliases: html-base, html5 @@ -130,9 +145,10 @@ The `math-output` `config setting`_ defaults to "MathML". html5 """"" -The writer name `html5` is reserved for a HTML writer that makes use of the -new features and objects defined in HTML5 (like