Add <target> to one more testcase (see r8206).
[docutils.git] / sandbox / latex_directive / rst2html.py
blob4a044fb3d203ec176a4b0b81656a4d95df6e75d5
1 #!/usr/bin/env python
3 # Author: John Gill
4 # Contact: swfiua@gmail.com
5 # Revision: $$
6 # Date: $ $
7 # Copyright: This module has been placed in the public domain.
9 """
10 A minimal front end to the Docutils Publisher, producing HTML.
12 Extended to add support for a latex directive.
14 Latex code is processed by latex and turned into a png.
15 """
17 import locale
18 try:
19 locale.setlocale(locale.LC_ALL, '')
20 except:
21 pass
23 from docutils.core import publish_cmdline, Publisher, default_description
25 import latex_directive
26 latex_directive.register() # Enable the ABC directive
28 description = ('Generates (X)HTML documents from standalone reStructuredText '
29 'sources. ' + default_description)
31 publish_cmdline(writer_name='html', description=description)