有人有简单教程的链接或有关如何执行此操作的任何其他建议吗?
>>> a = """=====\nhello\n=====\n\n - one\n - two\n"""
>>> import docutils
>>> docutils.core.publish_parts(a, writer_name='html')['html_body']
u'<div class="document" id="hello">\n<h1 class="title">hello</h1>\n<blockquote>\n<ul class="simple">\n<li>one</li>\n<li>two</li>\n</ul>\n</blockquote>\n</div>\n'
Publisher 便利功能 是使用 Docutils 作为库的正常入口点。它们记录在The Docutils Publisher中。