waldyrious / rst-playground

Browser-based reStructuredText playground, built on Pyodide and docutils.
https://waldyrious.github.io/rst-playground
ISC License
1 stars 4 forks source link
docutils hacktoberfest playground pyodide restructuredtext rst

rst-playground

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.

Motivation

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:

Status

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!