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
| Feature | Status | Notes |
|---|---|---|
| GFM tables | ✅ | GitHub Flavored Markdown |
| Mermaid | ✅ | Flowcharts, sequences |
| Math | ✅ | KaTeX rendering |
Task List
- Set up the editor
- Add Mermaid support
- Export as PDF
Math
Inline math:
Block math: