RoastWriter Markdown Editor (Example)
This is an intentionally long starter document to demonstrate the previewer and exports.
Quick start
- Type on the left, preview on the right
- Use
Export→ PDF / TXT / HTML / MD - Autosaves in your browser (localStorage)
A short brief
Goal: turn a rough idea into something readable in ~10 minutes.
Audience: busy people who skim.
Tone: direct, useful, lightly witty.
Write for scanning first, reading second.
Structure patterns
Headline ideas
- Ship faster without shipping bugs
- Your writing, but clearer
- Notes that export cleanly to PDF
- Stop rewriting the same doc forever
Key points
- Clarity beats cleverness.
- One idea per paragraph.
- Use headings like signposts.
- Prefer short sentences.
Nested lists
- Primary
- Secondary
- Tertiary
Task list
Example paragraph (longer)
Most documents fail because they try to do too much at once. Start by stating the goal in one sentence, then add just enough structure that someone can skim and still understand the point. If the preview reads well, the export usually does too.
Inline formatting
Use bold for emphasis, italic for nuance, and inline code for exact terms.
Code blocks
type ExportFormat = "md" | "txt" | "html" | "pdf"
export function describeExport(format: ExportFormat) {
switch (format) {
case "md":
return "Keeps Markdown source"
case "txt":
return "Plain text for copy/paste"
case "html":
return "A standalone web document"
case "pdf":
return "Great for sharing and printing"
}
}
# Suggested workflow
write -> preview -> export
Quote block
“Make the obvious obvious.”
— every good editor, eventually
Links & images
- Internal link: RoastWriter home
- External link: Example
Table (GFM-style)
| Format | Best for | Notes |
|---|---|---|
| MD | Editing | Source of truth |
| TXT | Copy/paste | No formatting |
| HTML | Publishing | Standalone page |
| Sharing | Print-friendly |
Notes
This editor is minimal on purpose: fast to write, easy to export. Replace this content with your own and you’re good to go.