Text and writing

How to convert simple Markdown to HTML

Conversion helps explain the HTML structure produced by Markdown, but review the result in the context where it will be used.

Before you start

Required libraries are loaded from jsDelivr; text is processed in the browser after they load. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. Enter # Guia, a blank line and Texto **forte**. as Markdown.

  2. Render the text.

  3. Compare the preview with the generated HTML.

Markdown to HTML

Worked example

The heading becomes an h1 element and the word between double asterisks becomes a strong element inside a paragraph.

The HTML includes <h1>Guia</h1> and <p>Texto <strong>forte</strong>.</p>.

CommonMark

Limits and checks

The processor uses markdown-it and DOMPurify loaded in the browser; it reports an error if they are unavailable. Raw HTML and images are disabled; not every Markdown extension is supported. A preview is not a security guarantee for another system. Limit: 100,000 UTF-16 code units.

Next step

To start with simple HTML and obtain Markdown, try HTML to Markdown.

How to convert simple HTML to editable Markdown
Back to the blog