markdown_features.md

August 27, 2025 ยท View on GitHub

mdts provides a rich Markdown reading experience by supporting the full CommonMark specification along with many popular extensions like GitHub Flavored Markdown (GFM) and additional enhancements for modern documentation.

โœ… CommonMark Features

All standard Markdown syntax is fully supported:

  • Headings: # H1 through ###### H6
  • Paragraphs: Regular text blocks
  • Emphasis:
    • Bold: **text** or __text__
    • Italic: *text* or _text_
  • Blockquotes: Using >
  • Lists:
    • Ordered: 1. Item
    • Unordered: - Item or * Item
  • Code:
    • Inline: `code`
    • Block: ```lang
  • Links: [label](https://example.com)
  • Images: ![alt text](image.png)
  • Horizontal Rules: ---, ***, or ___

๐Ÿš€ Extended Features

๐Ÿ“Š Tables

Render structured data in table format.

| Name     | Age | City      |
|----------|:---:|----------:|
| Alice    |  30 | Tokyo     |
| Bob      |  25 | New York  |

โ˜‘๏ธ Task Lists

Perfect for checklists and todos.

- [x] Write documentation
- [ ] Implement feature

๐Ÿ’ก GitHub Flavored Markdown (GFM)

mdts supports most GFM extensions, including:

  • Autolinks: Bare URLs like https://example.com become clickable links
  • Strikethrough: ~~text~~ renders as text
  • Tables & Task Lists: (as shown above)

We aim to maintain compatibility with widely adopted Markdown standards to ensure smooth reading, sharing, and collaboration across platforms.

๐ŸŽจ Advanced Syntax Highlighting

Code blocks get professional syntax highlighting with customizable themes through the settings dialog.

```rust
fn main() {
    println!("Hello, mdts!");
}
```

Choose from popular themes like Atom One Dark, GitHub, VS Code, and many more to match your preferred coding environment.

๐Ÿ”— Footnotes

Add footnotes for inline references.

Here is some text with a footnote[^1].

[^1]: This is the footnote text.

๐Ÿ“„ Frontmatter

Add YAML metadata at the top of your Markdown files.

---
title: "Sample Doc"
author: "Jane Doe"
tags: ["mdts", "docs"]
---

๐Ÿงฑ Inline HTML

Directly embed raw HTML when needed.

This is <strong>bold</strong> using HTML.

๐Ÿง  Mermaid Diagrams

Visualize workflows and diagrams using Mermaid.js.

```mermaid
graph TD;
    A[Start] --> B[Process];
    B --> C{Decision};
    C -->|Yes| D[End];
    C -->|No| A;
```

๐ŸŽฏ PlantUML Diagrams

Create UML diagrams with PlantUML syntax for sequence diagrams, class diagrams, and more.

```plantuml
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml
```

```puml
@startuml
class Car {
  +String brand
  +start()
  +stop()
}
@enduml
```

Supports both plantuml and puml language identifiers. Diagrams are rendered using the official PlantUML server.

๐Ÿงฎ Math Formulas (KaTeX)

Render beautiful mathematical expressions using LaTeX syntax with KaTeX.

```math
L = \frac{1}{2} \rho v^2 S C_L
```

Inline math: $E = mc^2$

Both block-level and inline mathematical expressions are fully supported with professional rendering quality.

๐Ÿ“ข GitHub-Style Alerts

Create admonitions like notes, tips, and warnings.

> [!NOTE]
> This is a note.

> [!WARNING]
> This is a warning.