Design
We'll convert odoc HTML into reStructuredText (rST), and then from rST back to HTML.
Basically: Odoc.html mli |> Pandoc.rst |> Pandoc.html
Typically we may just stop at reStructuredText since reStructuredText is the content format used by the (hugely) popular Sphinx documentation tool. reStructuredText is also the typical content format for Read the Docs which is in use by 80,000 open source projects.
Converting again to HTML lets us visually inspect how much information has disappeared in the conversion to reStructuredText using pandoc.
Results
- markup.mli
- test the Experiment Design rendering of comment markup in a .mli file. Compare to the original (100-plain) rendering
Conclusion
Using pandoc to produce reStructuredText results in poor rendering.
- The header level structure (ex.
{1 Section}
vs{2 Subsection}
) is lost - The implicit and explicit anchors for each title (ex.
{2 Subsection}
appears in the reStructuredText results. They should be invisible. - Several types of links do not render as links
- Raw HTML is lost completely