Master Markdown Syntax: Headings, Tables, Code Blocks & GFM Extensions
Comprehensive formatting cheat sheet for README.md files, technical documentation, blogs, and GitHub issues.
Table of Contents
Basic Typography & Formatting
Standard text emphasis, headers, and structural elements.
| Element | Markdown Syntax | Rendered Output |
|---|---|---|
| Heading 1 | `# Heading 1` | Top-level document title |
| Heading 2 | `## Heading 2` | Major section header |
| Bold Text | `**Strong text**` or `__Strong__` | **Strong text** |
| Italic Text | `*Emphasis*` or `_Emphasis_` | *Emphasis* |
| Strikethrough (GFM) | `~~Deleted text~~` | <del>Deleted text</del> |
| Inline Code | `` `const x = 42;` `` | `const x = 42;` |
| Horizontal Rule | `---` or `***` | Divider line `<hr />` |
GFM Tables
Tabular data formatting with column text alignment colons.
| Feature | Left-Aligned | Center-Aligned | Right-Aligned |
| :--- | :--- | :---: | ---: |
| Browser OCR | Client-side | WebAssembly | Free |
| Compression | Zero Upload | In-Browser | 100% Private |
| Audio Trim | Instant | HTML5 Canvas | Unlimited |Lists & Interactive Task Lists (GFM Checklists)
Ordered, unordered, and interactive task checklists.
- [x] 100% Client-Side Privacy
- [x] Zero Server Uploads
- [ ] Optional local backup
- [ ] Export as static HTML1. First step
- Sub-item with 3 spaces indentation
- Second sub-item
2. Second step
1. Numbered sub-step
2. Next numbered sub-stepCode Blocks with Language Syntax Highlighting
Fenced code blocks with language identifiers for highlight engines (Prism, Shiki, Highlight.js).
```typescript
interface ToolConfig {
name: string;
isClientSide: boolean;
}
export const tool: ToolConfig = {
name: "DocSwift",
isClientSide: true,
};
```Blockquotes & Alerts
Callout styling and nested quotes.
> [!NOTE]
> Useful information that users should know, even when skimming.
> [!TIP]
> Helpful advice for doing things better or more easily.
> [!IMPORTANT]
> Key information users need to know to achieve their goal.
> [!WARNING]
> Urgent info that needs user attention to avoid problems.Interactive Client-Side Tools for this Guide
Test and run these patterns directly inside your browser with zero server uploads:
Markdown to HTML Converter & Live Editor
Write clean documentation, blog posts, and README files with instant visual preview and one-click HTML code export.
Word & Character Counter (Academic Text Analyzer)
Instant text metrics, reading and speaking duration estimations, and keyword density for essays, theses, and articles.
Frequently Asked Questions
How can I convert Markdown directly to sanitized HTML in the browser?
Use DocSwift's free Markdown to HTML converter. It parses Markdown into clean semantic HTML instantly with zero server roundtrips.
How do I add line breaks in Markdown without creating a new paragraph?
End a line with two trailing spaces or an explicit `<br />` tag before hitting Enter.