Nguyen Tien Phat

I'm currently a senior student at Sai Gon University

Ho Chi Minh City, Vietnam
English & Vietnam
Total time coded since Apr 15 2023
6 stars earned on Github
361 words
2 min read

Enhanced Markdown Features Demo

Testing the new markdown extensions including admonitions, GitHub cards, and mathematical expressions

2025-01-01
Markdown / Documentation / Demo

Enhanced Markdown Features Demo

This post demonstrates the new markdown extensions we’ve added to make the blog more beautiful and functional.

Mathematical Expressions

We now support LaTeX-style mathematical expressions:

Inline math: E=mc2E = mc^2

Block math:

ddx(0xf(u)du)=f(x)\frac{d}{dx}\left( \int_{0}^{x} f(u) \, du\right) = f(x)

Admonitions and Callouts

Note Admonition

NOTE

This is a note admonition. It’s perfect for highlighting important information that readers should be aware of.

Tip Admonition

TIP

This is a tip admonition. Use this to share helpful tips and best practices with your readers.

Important Admonition

IMPORTANT

This is an important admonition. Use this for critical information that users must not miss.

Caution Admonition

CAUTION

This is a caution admonition. Use this to warn users about potential issues or things to be careful about.

Warning Admonition

WARNING

This is a warning admonition. Use this for serious warnings about dangerous or destructive actions.

GitHub Repository Cards

Here are some examples of GitHub repository cards:

astro-js
/
astro
Waiting for api.github.com...
00K
0K
0K
Waiting...
tailwindlabs
/
tailwindcss
Waiting for api.github.com...
00K
0K
0K
Waiting...
microsoft
/
vscode
Waiting for api.github.com...
00K
0K
0K
Waiting...

Enhanced Code Blocks

The code blocks now have better syntax highlighting:

// Example of enhanced JavaScript syntax highlighting
const blogPost = {
  title: "Enhanced Markdown Features",
  author: "Portfolio Author",
  tags: ["markdown", "demo"],
  published: new Date(),
  
  render() {
    return `
      <article>
        <h1>${this.title}</h1>
        <p>By ${this.author}</p>
        <div class="tags">
          ${this.tags.map(tag => `<span class="tag">${tag}</span>`).join('')}
        </div>
      </article>
    `;
  }
};
 
console.log(blogPost.render());
# Python example with syntax highlighting
def fibonacci(n):
    """Generate Fibonacci sequence up to n terms."""
    if n <= 0:
        return []
    elif n == 1:
        return [0]
    elif n == 2:
        return [0, 1]
    
    sequence = [0, 1]
    for i in range(2, n):
        sequence.append(sequence[i-1] + sequence[i-2])
    
    return sequence
 
# Generate first 10 Fibonacci numbers
fib_sequence = fibonacci(10)
print(f"First 10 Fibonacci numbers: {fib_sequence}")

Regular Markdown Features

All the regular markdown features still work perfectly:

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
    1. Nested ordered item 1
    2. Nested ordered item 2

Text Formatting

  • Bold text
  • Italic text
  • Inline code
  • Strikethrough text

Blockquotes

This is a blockquote. It’s useful for highlighting quotes or important passages from other sources.

Multiple paragraphs are supported in blockquotes.

Emoji Support

We also support emoji in markdown! 🎉 ✨ 🚀

🎉 ✨ 🚀 💻 ☕

Conclusion

These enhanced markdown features make the blog much more expressive and visually appealing. The admonitions help organize content better, GitHub cards showcase repositories elegantly, and mathematical expressions support technical content.

TIP

Try using these new features in your own blog posts to make them more engaging and informative!

© Copyright @ 2025. All Rights Reserved by Jack Phat

Powered by Astro & Inspried by Fuwari