/Markdown Editor
93 words61 lines
Loading editor…

Markdown Editor

A full-featured editor with live preview, Mermaid diagrams, math, and syntax highlighting.


Formatting

Bold, italic, strikethrough, inline code.

Blockquotes look clean too.

Code

// Fibonacci with generators
function* fib() {
  let [a, b] = [0, 1];
  while (true) { yield a; [a, b] = [b, a + b]; }
}
const first10 = [...Array(10)].map((_, i) => {
  const gen = fib();
  return [...Array(i + 1)].reduce((_, v) => gen.next().value, 0);
});

Mermaid Diagram

Tables

FeatureStatusNotes
GFM tablesGitHub Flavored Markdown
MermaidFlowcharts, sequences
MathKaTeX rendering

Task List

  • Set up the editor
  • Add Mermaid support
  • Export as PDF

Math

Inline math: E=mc2E = mc^2

Block math:

0ex2dx=π2\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}