Markdown Syntax Demo

1 minute read

This post demonstrates various Markdown syntax supported by the Bat theme.

Text Formatting

Bold text, italic text, bold italic

Strikethrough

Inline code

Blockquotes

This is a blockquote.

It can span multiple lines, and can be nested.

Lists

Unordered List

  • Item 1
  • Item 2
    • Subitem 2.1
    • Subitem 2.2

Ordered List

  1. First step
  2. Second step
  3. Third step

Code Blocks

Inline Code

Use the print() function to output text.

Code Block (with syntax highlighting)

1
2
3
4
def greet(name):
    return f"Hello, {name}!"

print(greet("World"))

Internal link

External link

Tables

Feature Status Priority
Theme toggle ✅ Done High
Responsive ✅ Done High
Comments 🚧 In progress Medium

Horizontal Rule


Images

Image description

Task List

  • Complete theme toggle
  • Implement responsive design
  • Add more color schemes
  • Optimize mobile experience

Footnotes

This is a footnote text.1

Math Formulas (requires MathJax configuration)

Inline formula: $E = mc^2$

Block formula:

$$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$

Conclusion

Bat theme perfectly supports all the Markdown syntax above!


  1. Footnote content, click to jump. ↩︎