reStructuredText → HTML (basic)
Render simple RST to HTML: underlined headings, lists, *italic*, **bold** and indented code blocks.
HTML gerado:
—
Preview:
reStructuredText to HTML
In RST, a heading has no marker of its own: it is recognised by the line of symbols right below the text. That makes conversion to HTML less obvious than it sounds — you have to look at the next line before deciding what the current one is. This page does that work and returns the matching HTML, with a preview.
The heading level comes from the symbol used in the adornment, following the most common convention: equals for the first, hyphen for the second and tilde for the third. Asterisk lists become unordered lists, and content text is escaped before entering the HTML, so a less-than sign mid-paragraph appears as a character rather than as markup.
It is worth knowing what stays out, because in RST that is a fair amount: directives, text roles, cross-references, footnotes and tables all depend on interpreting the whole document and on knowing which extensions are in play. To convert full documentation, the tool is Docutils or Sphinx. This page solves the case of reusing a fragment elsewhere.
Frequently asked questions
How does RST know which level is which?
Why was my heading not recognised?
What about Sphinx directives?
Related Tools
Markdown → reStructuredText
Basic Markdown to RST converter: underlined headings (=== ---), lists, links and inline code. Useful for Sphinx.
AsciiDoc → HTML (basic)
Render simple AsciiDoc to HTML: headings = == ===, paragraphs, lists, emphasis. Does not cover advanced extensions like includes.
Org-mode → HTML (basic)
Render simple Org-mode to HTML: asterisk headings, lists, /italic/, *bold* and #+BEGIN_SRC blocks.
HTML to JSX
Convert HTML to React JSX automatically. Transforms class→className, for→htmlFor, converts attributes to camelCase and closes void tags.
JSON to HTML Table Converter
Convert an array of JSON objects into a ready HTML table, with header and rows. Paste the JSON and copy the code to drop straight into your page or email.
HTML to Pug Converter
Convert HTML into the indentation-based Pug (formerly Jade) syntax, with no closing tags. Paste your HTML and get the Pug version — great for Node.js and Express.