Markdown
Preview

Welcome to mdShare

A server-side Markdown editor with shareable links backed by SQLite.

Features

  • Share: Save your document and get a unique link
  • Update: Edit a shared document at any time using its link
  • Export: Download as PDF, RTF, Word (.doc), Markdown, or HTML
  • Paste images: Just paste — they'll be saved as blobs in the database
  • Mermaid: Full diagram support
  • Syntax highlighting: Beautiful code blocks

Code Example

Default wrap (long lines wrap to fit the block):

async function fetchDoc(hash: string) { return await fetch(`/api/documents/${hash}`).then((r) => (r.ok ? r.json() : null)); }

Disable wrapping with nowrap after the language — long lines scroll horizontally:

async function fetchDoc(hash: string) { return await fetch(`/api/documents/${hash}`).then((r) => (r.ok ? r.json() : null)); }

Hover any code block to toggle wrap on/off.

Mermaid Diagram

Tables

FormatDescription
PDFPrint-ready document
RTFUniversal rich text
WordMicrosoft Word (.doc)
HTMLStandalone web page

Use *** on its own line to insert a page break in PDF/Word exports.