Return to blog

Official Blog Release

All Things Linux

January 31, 2025

Enjoy the power of MDX!

Hey everyone!

We are thrilled to announce the launch of our new blog! After dedicating significant time and effort, it's finally ready for you to explore. Our blog will highlight some of the fantastic features MDX has to offer.

Looking ahead, we plan to expand our content beyond just news and announcements. We aim to create a platform where content creators and thought leaders can share their insights and experiences with the community through guides, tutorials, opinions, and more.

Text Formatting

You can make text bold, italic, or both. You can also use strikethrough for deleted text.

Lists

Unordered List

  • First item
  • Second item
    • Nested item 1
    • Nested item 2
  • Third item

Ordered List

  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step

Tables

Basic Table

FeatureSupportedNotes
TablesBasic markdown tables
Code BlocksWith syntax highlighting
Math EquationsNot yet implemented
DiagramsFuture addition

Table with Alignment

LeftCenterRight
ContentContentContent
Left-alignedCenteredRight-aligned

Code Examples

Inline Code

You can use inline code for short code snippets or technical terms.

Code Block with Filename

example.py
1def greet(name: str) -> str: 2 """A simple greeting function""" 3 return f"Hello, {name}!" 4

TypeScript Example

example.ts
1function example() { 2 const x = 1; 3 // Hello world 4 return x + 2; 5} 6

Blockquotes

This is a blockquote. Perfect for highlighting important information or quotes.

You can have multiple paragraphs in blockquotes.

Source Attribution

GitHub-style Alerts

You can use GitHub-style alerts to highlight important information:

Note

This is a note alert. Use it to highlight information that users should take into account, even when skimming.

Tip

This is a tip alert. Perfect for optional information to help users be more successful.

Important

This is an important alert. Use it for crucial information necessary for users to succeed.

Warning

This is a warning alert. Critical content demanding immediate user attention due to potential risks.

Caution

This is a caution alert. Use it to advise about negative potential consequences of an action.

Task Lists

  • Support basic Markdown
  • Add code highlighting
  • Add table support
  • Add math equations
  • Add diagrams

Advanced Features

Custom Components

You can use React components directly in your MDX:

example.jsx
1<CodeBlock 2 language="typescript" 3 filename="example.tsx" 4 code={` 5 const greeting = "Hello, World!"; 6 console.log(greeting); 7 `} 8 highlightLines={[2]} 9/> 10

GitHub References

You can automatically link to GitHub issues, commits, and users:

Issues and Pull Requests

Commits

Branches

Users and Organizations

These references will be automatically converted to links with avatars pointing to the correct GitHub pages.

Final Notes

This concludes our MDX features demo. Remember that you can combine all these elements to create engaging and informative blog posts. Looking forward to sharing more content with you soon!

Last updated: March 28, 2024


Contributors