Converting html fragments to reStructuredText
Posted by jpluimers on 2019/01/09
Though normally you would write documentation in reStructuredText, then generate HTML or PDF, often you find a part of the documentation source in HTML.
Here are some sites and tools I’ve used to convert HTML fragments to reStructuredText. I favour on-line over local command-line tools as usually these kinds of conversions are “one-time only”.
- [WayBack] Translate HTML to reST – Siafoo
- Documentation: [WayBack] HTML to reST translator – Siafoo
- Pandoc command-line: [WayBack] restructuredtext – Using pandoc to convert html to rst strips the newlines from the pre block – Stack Overflow
–jeroen
Leave a Reply