You converted your Markdown, the HTML looks plausible, and the deadline says paste it in. This is the exact moment most conversion problems slip through: a skipped heading level, a link pointing at the wrong file, a table that came out as a paragraph of pipe characters, or a piece of the original that sanitization quietly removed. None of these announce themselves if you only glance at the code.
Conversion is a two-stage job, and each stage deserves one look before the result ships. This guide is that look: a checklist for the Markdown to HTML Converter on Ovatly, run against the preview and the copied code.
Contents
- Quick answer
- Two stages, two kinds of change
- Check the headings first
- Follow every link
- Confirm tables rendered as tables
- Account for what sanitization removed
- How to check converted HTML, step by step
- Worked example: a two-line conversion, checked
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To check converted HTML before you ship it: read the sanitized preview and confirm the headings nest in order, follow every link, confirm any table rendered as a real table, and account for anything sanitization removed, because script tags, event-handler attributes and javascript: URLs are stripped. Then paste it into a real page, view it once, and only then call it shipped. The Markdown to HTML Converter gives you both halves of the check: a preview to read, and sanitized HTML to copy or download as an .html file.
Two stages, two kinds of change
The converter renders your Markdown into HTML with the marked parser, which follows CommonMark-style rules plus a few GitHub-flavored features such as tables and strikethrough. Then it sanitizes the result with DOMPurify, so the code you copy is safe to paste into a page. Sanitization strips <script> tags, event-handler attributes and javascript: URLs, removes HTML comments, and keeps raw HTML only where DOMPurify considers it safe.
That split is why the checklist works: a difference in the output came from a rendering choice by the parser, which you fix in the Markdown, or a removal by the sanitizer, which you do not fix at all, because it is the safety pass doing its job.
Check the headings first
Headings are the structure of the piece, and structure errors are easy to miss in a wall of code. In the preview, read only the headings, in order. They should step down one level at a time, from title through sections to subsections, with no skipped levels and no two headings competing as the top one.
In the code: # Title comes out as <h1>Title</h1>, a second-level heading as <h2>, and so on. If a line you meant as a heading shows up as a plain paragraph, the usual cause is on the Markdown side, often a missing space after the # characters. Fix it there and reconvert, rather than patching the HTML by hand.
Follow every link
Links are where intent hides. The Markdown can look right while the destination is wrong: a relative path that resolved on your machine but not the server, a file name from an old draft, or an anchor naming a heading you renamed.
Click each link in the preview, or read each href in the code, and ask one question: is this where the sentence promised to go? Pay special attention to links written as javascript: URLs or carrying event-handler attributes such as onclick: sanitization strips those by design, so a link that depended on them will not behave in the output as it did in your source.
Confirm tables rendered as tables
Tables are among the GitHub-flavored features the parser supports here, so a proper pipe table appears in the preview as a grid, with a header row and aligned columns. If instead you see a paragraph of pipe characters and dashes, the table did not render, and the usual cause is a missing separator row under the header.
Check the grid itself too: count the columns against your source and read a cell or two to confirm values landed where you meant. A table with data shifted one column over is worse than one that fails loudly, because readers trust it.
Account for what sanitization removed
Before you ship, list what the sanitizer was always going to take out, and confirm the page does not depend on any of it: <script> tags, event-handler attributes, javascript: URLs, and HTML comments. Raw HTML mixed into the Markdown survives only where DOMPurify considers it safe.
The practical rule: anything on that list your page needs must be re-added in the destination, not the converter. Pasting it back into the Markdown changes nothing: the sanitizer strips it again on every pass. Treat the fragment as content; the destination is where behavior lives.
How to check converted HTML, step by step
- Open the Markdown to HTML Converter and paste in your Markdown.
- Read the sanitized preview: headings in order, then links, then any tables.
- Copy the sanitized HTML, or download the
.htmlfile, and scan for anything the page needs that sanitization removed. - Paste the fragment into the real destination page and view it once, at real size.
- Fix problems in the Markdown and reconvert, rather than patching the HTML, so the fix survives.
Worked example: a two-line conversion, checked
Take the smallest useful conversion:
# Title
Some **bold** text.
comes out of the converter as:
<h1>Title</h1>
<p>Some <strong>bold</strong> text.</p>
Run the checklist over it. Headings: one top-level heading, <h1>, matching the single #, with no deeper levels to skip. Emphasis: the bold words sit in <strong> inside a paragraph, exactly what the ** markers asked for. Links and tables: the source has none, so nothing to follow and no grid to count. Sanitization: the input carried no raw HTML, scripts or comments, so nothing was removed. Four checks, a few seconds, and the fragment is ready to paste into a page and view once.
Limitations and honest tradeoffs
The converter produces an HTML fragment, not a whole page: no <head>, no styles, none of your site's template. How it looks inside your layout, under your CSS, only the real-page check can tell you.
Sanitization is a safety pass, not an editor. It will not fix weak Markdown, repair a broken table, or warn you about a skipped heading level; it removes unsafe constructs and stays silent about the rest. Because removal is silent, noticing an absence is your job.
Finally, the check is only as fresh as the last conversion: edit the Markdown afterwards and you must reconvert and re-check affected sections before shipping.
Common mistakes
- Shipping from the code view alone. Dense HTML hides structural problems the preview makes obvious.
- Blaming the converter for a missing script. Scripts, event handlers and
javascript:URLs are stripped by design: the sanitizer working, not a bug. - Checking links in the Markdown instead of the output. The Markdown shows what you meant. The output shows what readers get.
- Treating the fragment as a finished page. It still needs your template, styles and one real view.
- Patching the HTML by hand. The next conversion overwrites the patch. Fix the Markdown and reconvert.
FAQs
Why check the preview if I already have the HTML code? The preview shows what a reader gets: heading order, working links and tables that look like tables. The code view is where you confirm nothing the page needs was stripped. Each view catches problems the other hides, so the check uses both.
Where did the script in my Markdown go?
Sanitization removed it. The converter runs its output through DOMPurify, which strips script tags, event-handler attributes and javascript: URLs by design. If the destination needs that behavior, add it there, because the converter will strip it on every pass.
Do tables survive Markdown to HTML conversion? Yes. Tables are one of the GitHub-flavored features the marked parser supports here, so a pipe table renders as a real HTML table. If yours shows up as a paragraph of pipe characters instead, the separator row under the header is the usual thing missing.
Is my Markdown uploaded to a server for conversion? No. The converter runs fully in your browser, rendering and sanitizing alike. Nothing is uploaded, and the page works the same offline once it has loaded.
What is the final check before converted HTML counts as shipped? Paste the fragment into the real destination page and view it once at real size. The preview shows the fragment alone; only the real page shows it inside your layout and styles, where a wide table or long heading can still surprise you.
Conclusion
Converted HTML earns the word shipped only after four quick passes: headings in order, links followed, tables confirmed, and sanitization's removals accounted for, finished with one view inside a real page. The Markdown to HTML Converter keeps the whole loop in your browser, so checking costs minutes and uploads nothing. If tables matter most in your documents, our guide to converting Markdown tables to HTML tables goes deeper on that feature. For more guides in this series, see our Website and Webmaster Tools guides, which pair each technique with the free tool that performs it.
References
- marked documentation, on the parser and the GitHub-flavored features it supports: https://marked.js.org/
- DOMPurify (cure53), on what the sanitizer strips and why: https://github.com/cure53/DOMPurify