Skip to content
cosmodev ~/tools/markdown-to-html

ตัวแปลง Markdown → HTML

Converters & Formatters

เรนเดอร์ Markdown เป็น HTML ที่สะอาดและ escape แล้ว: หัวข้อ รายการ ลิงก์ รูปภาพ บล็อกโค้ด และคำพูด อินพุตทุกอย่างจะถูก escape ก่อน จึงมั่นใจได้ว่าเอาต์พุตเป็นมาร์กอัปที่ปลอดภัยเสมอ ทำงานในเครื่องพร้อมลิงก์สำหรับแชร์

ลองใช้:

(เอกสารเป็นภาษาอังกฤษ)

What it does

Renders a practical Markdown subset into clean HTML: ATX headings (#–######), fenced code blocks with language classes, block quotes, ordered and unordered lists, horizontal rules, and inline marks — bold, italic, strikethrough, code spans, links and images. Everything is HTML-escaped before the inline rules run, so raw HTML in your input renders as visible text, never as markup. The output is a block per line group, ready to paste into any template. Everything runs locally in your browser.

How to use it

  1. Paste Markdown into Markdown (left), or tap a chip — README, Blog post, Code. Sample loads a release-notes document; Clear empties the box.
  2. The HTML appears live in HTML output (right).
  3. Copy takes the markup.
  4. Copy share link encodes your input in the URL.

Examples

Headings and marks:

# Title → <h1>Title</h1> · **b** *i* ~~s~~ \c`→b i s c`

A fenced block with a language:

```js
const x = 1;
```

→ <pre><code class="language-js">const x = 1;</code></pre>

Raw HTML stays visible and inert:

<script>alert(1)</script> → &lt;script&gt;alert(1)&lt;/script&gt; — escaped, not executed.

What the subset covers

Supported Not supported (by design)
ATX headings, hr, paragraphs setext headings, tables
Fenced code (```), inline code indented code blocks
- / * / + and 1. lists (flat) nested lists, task lists
> quotes (nesting other blocks inside) lazy quote continuation
**bold**, *italic*, ~~strike~~ reference links, footnotes
[t](u), ![alt](src) autolinks, raw HTML passthrough

The escape-first order is the contract: what you typed is what shows up as text, and only the subset above becomes tags. For the other direction, use HTML to Markdown Converter.

ซอร์สโค้ด14 ภาษา

100% ฝั่งไคลเอนต์ · ข้อมูลของคุณไม่ออกจากเบราว์เซอร์ของคุณเลย ใช้แล้วเป็นประโยชน์ไหม แชร์ให้เพื่อนร่วมงานได้เลย