-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.xhtml
30 lines (29 loc) · 1.2 KB
/
index.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<title>Live rST playground</title>
<meta name="viewport" content="width=device-width" />
<script src="https://cdn.jsdelivr.net/pyodide/v0.23.1/pyc/pyodide.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<p>
This is a live playground for rendering
<a href="https://docutils.sourceforge.io/rst.html">reStructuredText</a>
into HTML entirely in the browser,
using <a href="https://pyodide.org">Pyodide</a>
to run <a href="https://docutils.sourceforge.io">docutils</a>.
Source code <a href="https://github.com/waldyrious/rst-playground">on GitHub</a>.
<noscript><mark><b>Note:</b> This page requires JavaScript to work.</mark></noscript>
</p>
<form>
<label for="rst-input">reStructuredText input</label>
<label for="html-output">HTML output</label>
<textarea name="rst_input" id="rst-input" autofocus="true" disabled="true"></textarea>
<iframe id="html-output"></iframe>
</form>
<button disabled="true" onclick="rstToHtml()">Run</button>
<script src="script.js"></script>
</body>
</html>