A fully browser-based reStructuredText playground that anyone can use without setting up a server. Try it out at https://waldyrious.github.io/rst-playground.
This project was triggered by the two previous playgrounds (http://rst.ninjs.org and https://livesphinx.herokuapp.com) having stopped working as of December 2022, and because I am more used to markdown and too lazy to learn rST properly, so I find myself often needing such a playground where I can try out the syntax and see how it renders. (Also because I've been curious about Pyodide for a while, so it was an opportunity to give it a try.)
More detailed background:
rst2html
(converts from reStructuredText to HTML).docutils
.
docutils
to JavaScript,
but it's also incomplete,
and appears to be abandoned as well.docutils
' rst2html
,
though see this
and this)
to do the actual conversion.rst2html
directly the in the browser.A basic prototype is up and running.
The webpage is live at https://waldyrious.github.io/rst-playground.
It uses Pyodide to call docutils
to convert rST content entered into the <textarea>
on the left,
and shows the resulting HTML in the <iframe>
on the right.
Check the open issues for planned improvements. Pull requests are welcome!