pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

md-to-html Convert Markdown to HTML

</> Web
Input0 chars
Output0 chars

Examples

Convert Markdown to HTML

Usage
"# Hello

This is **bold** and *italic*.

- Item one
- Item t..." | md-to-html

Convert a Markdown draft to HTML for a blog post

Usage
"# Weekly Update

**Sales** are up *15%* this quarter.

- New..." | md-to-html

Convert Markdown meeting notes to HTML for an email

Usage
"## Agenda

- Review **Q3 goals**
- Discuss *hiring plan*
- B..." | md-to-html
View source
(input)=>{
                return input.replace(/^### (.+)$/gm, "<h3>$1</h3>").replace(/^## (.+)$/gm, "<h2>$1</h2>").replace(/^# (.+)$/gm, "<h1>$1</h1>").replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*(.+?)\*/g, "<em>$1</em>").replace(/`(.+?)`/g, "<code>$1</code>").replace(/^\- (.+)$/gm, "<li>$1</li>").replace(/^(?!<[hlo])(.*\S.*)$/gm, "<p>$1</p>").replace(/\n{2,}/g, "\n");
            }

Also useful for