Cover image

Demo of markdown features

This is a quick demo of markdown features

By Conrad OsvikSeptember 19, 2025blogmarkdownshadcn

Introduction

This is the introduction to my first blog. Let me show you what we can do with inline code and other markdown features.

This is a blockquote to demonstrate the styling. It should have nice borders and muted text colors that work well with the shadcn design system.

Lists and Text

Here's an unordered list:

  • First item with some text
  • Second item that's longer to show how wrapping works in the list items
  • Third item

And an ordered list:

  1. First numbered item
  2. Second numbered item with inline code
  3. Third item with a link

Tables

FeatureStatusNotes
Basic markdownAll implemented
Code blocksWith line numbers
MathKaTeX support
TablesResponsive styling

Code Examples

Here's a TypeScript example with line numbers:

calculator.ts
console.log('Hello, world!')
 
function add(a: number, b: number): number {
    return a + b
}
 
class Calculator {
    constructor(private initialValue: number = 0) {}
 
    add(value: number): this {
        this.initialValue += value
        return this
    }
 
    getValue(): number {
        return this.initialValue
    }
}
 
const calc = new Calculator(10).add(5).add(3)
 
console.log(calc.getValue()) // 18

Math Examples

Inline math like E=mc2E = mc^2 should be styled nicely.

Block math gets special treatment:

01x2dx=13\int_0^1 x^2 \, dx = \frac{1}{3}

More complex math:

f(x)=ax2+bx+cf(x) = ax^2 + bx + c

GitHub Flavored Markdown (GFM)

Task Lists

  • Implement feature
  • Write tests
    • Unit tests
    • Integration tests
  • Update docs

Strikethrough

This text has obsolete information that was updated later.

Bare links are automatically linked in GFM:

https://example.com and www.github.com will both be clickable.

Footnotes

Here is a statement with a footnote.1

Aligned Table

NameScoreTrend
Alice100⬆️
Bob75⬇️
Charlie90

Diff Code Block

diff --git a/app/page.tsx b/app/page.tsx
index 1111111..2222222 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@
- return <h1>Hello</h1>
+ return <h1>Hello, world!</h1>

Details Disclosure

Click to expand extra context

This section uses native HTML details/summary which renders well on GitHub and most MDX renderers.

  • It can contain lists
  • And inline code

Conclusion

This demonstrates all the styling features working together with the shadcn design system!

Footnotes

  1. This is the footnote content. You can include links like https://github.com and even more text.