About This Tool
This page focuses on HTML Source for integrating Markdown content into existing pages or templates. Output is a semantic HTML fragment without extra html, head, or body wrappers. The preview below uses the same safety rules.
How to Use It
- Enter the Markdown source.
- Click Convert and inspect the HTML source and safe preview.
- Check that raw HTML stays escaped and that links and code follow the stated rules.
- Copy HTML or download converted.html, then integrate the fragment into your page.
Examples
- # Hello → <h1>Hello</h1>.
- **bold** → <strong>bold</strong>.
- [link](https://example.com) creates a safe link; raw <script> does not become an executable script.
Rules and Limits
Shares the local parser and safety policy with Markdown Preview: raw HTML is disabled, and unsafe URL schemes do not produce executable links. Source is displayed through textarea.value; the preview renders only safely generated output. Output is an HTML fragment, and images become text placeholders to avoid automatic image requests when previewing or opening the download. Input limits: 200 KiB and 5,000 lines. Parsing and preview allow up to 20,000 tokens and 20,000 DOM nodes respectively; HTML output is limited to 1 MiB.
Common Uses
- Integrate documentation excerpts into static pages.
- Inspect the semantic HTML produced from Markdown.
- Export a safe HTML fragment for reuse.
Privacy
Text processing, file reading, conversion, and previews all run locally in this browser. Input is not uploaded or automatically saved. No backend, database, online API, or third-party CDN is used. Copying and downloading also happen locally.
FAQ
How is this different from Markdown Preview?
Preview focuses on rendered content and copies Markdown. This page provides HTML source, HTML copying, and an HTML download.
Is raw HTML preserved and executed?
No. Raw HTML is escaped as text instead of becoming scripts, event attributes, or arbitrary embedded elements.
Is the output a complete web page?
By default, it is a fragment without html, head, or body wrappers, ready to integrate into an existing page.
Does downloading HTML upload it to a server?
No. The browser creates a local download using a Blob and releases its temporary object URL afterward.
Are all Markdown extensions supported?
No. Platform-specific extensions vary. Common headings, emphasis, lists, block quotes, code blocks, links, and tables are supported; check complex components on the target platform.