Skip to content

A service that converts Markdown to beautiful HTML. Support full-featured syntax.

License

Notifications You must be signed in to change notification settings

vikiboss/md2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md2html

A service that converts Markdown to beautiful HTML. Support full-featured syntax。See the Render Preview.

Tip

This service is powered by Deno & Deno Deploy.

Usage

fetch('https://md-to-html.deno.dev', {
  method: 'POST',
  body: '## Hello, World!',
}).then((res) => res.text());

Features

  • GitHub Flavored Markdown (GFM)
    • Emoji Transform: :smile: -> 😄
    • Autolink: https://example.com -> <a href="https://example.com">https://example.com</a>
    • Code Block: -> code block
    • Table: | header | header | -> table
    • Task List: - [x] -> checked, - [ ] -> unchecked
  • GitHub Styled Alert
    • > [!INFO] -> info alert
    • > [!TIP] -> tip alert
    • > [!IMPORTANT] -> important alert
    • > [!WARNING] -> warning alert
    • > [!CAUTION] -> caution alert
  • KaTeX (Math expressions)
    • $$ ... $$: display math
    • \[ ... \]: display math
    • $ ... $: inline math
  • Code Block Powered by Shiki (The Modern Beautiful Syntax Highlighter)
    • Support 200+ languages & 54+ beautiful themes
    • Useful Notations (available in this service):
      • transformerNotationDiff(): like: +const a = 1
      • transformerNotationFocus(): like: // [!code focus]
      • transformerMetaHighlight(): like: ```js {1,3-5}
      • transformerMetaWordHighlight(): like: ```js /Hello/
      • transformerNotationHighlight(): like: // [!code highlight]
      • transformerNotationErrorLevel(): like: [!code error] & [!code warning]
      • transformerNotationWordHighlight(): like: // [!code word:Hello]
  • Heading Anchor
    • a link icon on the right of the heading when hover
  • Footnote
    • [^1]: Footnote Content

Render Preview

See the Render Preview.

License

MIT License © 2025-PRESENT Viki

About

A service that converts Markdown to beautiful HTML. Support full-featured syntax.

Topics

Resources

License

Stars

Watchers

Forks