Markup language of output from python's help function?
<p>does the output of <code>help(something)</code> follow some markup language that is easy to format in html? I know about <code>pydoc -w [topic]</code> but  there are two problems:</p>

<ul>
<li>customization of the style is not easy (http://bugs.python.org/issue10716) and </li>
<li><code>pydoc -w</code> fails for some topics (http://stackoverflow.com/a/10333615/1318686)</li>
</ul>

<p>Below is some example output generated by <code>help('def')</code>. It has some typical characteristics of other markup languages. E.g. spaces for code blocks, ` for inline code, ** to highlight...</p>

<p>Any ideas?</p>

<p>Thanks!</p>

<pre><code>Function definitions
********************

A function definition

Multiple decorators are applied in
nested fashion. For example, the following code:

   @f1(arg)
   @f2
   def func(): pass

just like a function defined by a lambda form.  The "``def``" form is
actually more powerful since it allows the execution of multiple
statements.

**Programmer's note:** Functions are first-class
</code></pre>
