import {Footer, Navbar} from '../../components'; import {motion} from 'framer-motion'; import {DASHBOARD_URI} from '../../lib/constants'; import React, {useMemo, useState} from 'react'; import {NextSeo} from 'next-seo'; import {ArrowRight, Check, Code2, Copy, Sparkles} from 'lucide-react'; import {MarkdownEmailEditor} from '../../components/tools/MarkdownEmailEditor'; import {convertToCompleteEmailHtml} from '../../lib/emailHtmlConverter'; import {Button} from '@plunk/ui'; export default function MarkdownToEmail() { const [editorContent, setEditorContent] = useState('

Hello!

Try editing this text...

'); const [copied, setCopied] = useState(false); // Convert editor content to complete, ready-to-send email HTML const emailSafeHtml = useMemo(() => { return convertToCompleteEmailHtml(editorContent); }, [editorContent]); const handleCopy = async () => { await navigator.clipboard.writeText(emailSafeHtml); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return ( <>
{/* Hero Section */}
Free Tool

Markdown to Email
HTML Converter

Create beautiful, email-safe HTML instantly. Format your text with our visual editor and get production-ready HTML with inlined styles that works across all email clients.

{/* Editor Section */}
{/* Left: Editor */}

Visual Editor

Format your content
{/* Right: Email-Safe HTML Output */}

Email-Safe HTML

                  {emailSafeHtml}
                
{/* CTA Section */}

Ready to send great emails?

This tool is great for creating email HTML, but Plunk handles everything: templates, sending, tracking, and deliverability. Start free, no credit card required.

Start with Plunk