.md · text/markdown
Markdown: Markdown & GitHub Flavored Markdown
Markdown (CommonMark / GFM) encodes headings, lists, links, fenced code, and tables using minimal plain-text symbols ideal for both humans and LLMs.
Quick Answer: Markdown (CommonMark / GFM) encodes headings, lists, links, fenced code, and tables using minimal plain-text symbols ideal for both humans and LLMs. AI/RAG knowledge bases, developer documentation, READMEs, Obsidian vaults, and portable note-taking.
| Structure type | Markup |
|---|---|
| Human readability | High |
| Nesting support | Yes |
| LLM token efficiency | High |
| File extension | .md |
| MIME type | text/markdown |
| Best for | AI/RAG knowledge bases, developer documentation, READMEs, Obsidian vaults, and portable note-taking. |
Strengths
- Preserves semantic headings and tables with ~70% fewer tokens than HTML
- Default input/output format for RAG chunking, LLM prompts, and docs
- Converts cleanly to sanitized HTML, PDF, or plain text
Trade-offs
- No standardized pagination, CSS layout, or print styling built in
- Different dialects (CommonMark vs. GFM vs. Obsidian) handle tables differently
- Raw ** and ## symbols look cluttered when pasted directly into Word or email
References
Convert & clean Markdown locally
Related engineering guides
- HTML to Markdown vs. Strip HTML Tags: Cleaning Web Text LocallyLearn when to convert HTML to structured GFM Markdown or strip tags to plain text—removing nav clutter, scripts, and HTML entities offline.
- Preparing PDF, Word & Excel as Clean Markdown for RAG & LLMsTurn confidential PDFs, Word DOCX docs, and Excel sheets into structured Markdown for vector chunking and LLM context—100% locally.
- Stripping AI Markdown Symbols for Word, Email & Clean DocsRemove raw **bold**, ### headings, and code fences from AI responses—or convert Markdown to Rich Text HTML ready for Word, Docs, and Gmail.
- Markdown to PDF & PDF to TXT: Clean Offline Document WorkflowsExport Markdown runbooks to A4 or Letter PDFs with CJK font support, and extract clean unwrapped TXT or Markdown from local PDFs via PDF.js.
Related Formats
All 24 formatsMarkdown frequently asked questions
Why is Markdown the preferred format for RAG and LLM pipelines?
Markdown keeps document hierarchy (# headings, lists, tables) that improves chunk boundaries while avoiding verbose HTML/XML tags that waste context tokens.
How do I paste ChatGPT or Claude Markdown into Word without raw asterisks?
Either convert Markdown to HTML with Copy Rich Text enabled, or strip formatting symbols cleanly using Remove AI Markdown.
What does GFM add over basic CommonMark Markdown?
GitHub Flavored Markdown adds pipe tables, task checklists (- [x]), strikethrough (~~text~~), and autolinks.