Testing mdBook Formatting

1. Basic Markdown Elements

Headers

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

Text Formatting

  • Italic text
  • Bold text
  • Bold and Italic text
  • Strikethrough text

Lists

  • Unordered list item 1
  • Unordered list item 2
    • Nested item 1
    • Nested item 2
  1. Ordered list item 1
  2. Ordered list item 2

mdBook Documentation

Images

Rust Logo

2. Code Blocks and Syntax Highlighting

Inline Code

This is an example of inline code.

Code Blocks

fn main() {
    println!("Hello, mdBook!");
}

Shell Commands

echo "This is a shell command"

JSON

{
    "key": "value",
    "array": [1, 2, 3],
    "nested": {
        "key2": "value2"
    }
}

3. Tables

Header 1Header 2Header 3
Row 1Data 1Data 2
Row 2Data 3Data 4

4. Admonitions with mdbook-admonish

Info

Info

This is an informational note.

Warning

Warning

This is a warning note.

Error

Danger

This is a danger note.

Success

Success

This is a success note.

Tips

Tip

This is a tip!

Custom Titles

Custom Note Title

This is a note with a custom title.

5. Blockquotes

This is a blockquote.

It can span multiple lines.

6. Math

Inline Math

Euler's identity: $e^{i\pi} + 1 = 0$

Display Math

$$ \int_0^\infty e^{-x^2} , dx = \frac{\sqrt{\pi}}{2} $$

7. Diagrams

Mermaid Diagrams

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

8. Footnotes

Here's a sentence with a footnote.1

1

This is the footnote content.

9. Task Lists

  • Task 1 completed
  • Task 2 not completed

10. Collapsible Sections (if supported)

Click to expand!

Hidden content here.