Markdown Testing
This post is a compact test page for common Markdown features, LaTeX rendering, syntax highlighting, and mixed HTML content.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraphs and inline formatting
This is a paragraph with bold text, italic text, bold italic text, strikethrough text, inline code, and a keyboard shortcut: Ctrl + K.
Markdown can also include links like Jekyll, automatic URLs like https://example.com, and email links like hello@example.com.
Use inline HTML when needed: highlighted text, superscript, subscript, and HTML.
Blockquotes
This is a blockquote.
It can span multiple paragraphs and include formatting.
Nested blockquotes should also render clearly.
Lists
Unordered list
- First item
- Second item
- Nested item
- Another nested item
- Third item
Ordered list
- First step
- Second step
- Nested step
- Another nested step
- Third step
Task list
- Render headings
- Render lists
- Confirm every edge case manually
Definition list
- Markdown
- A lightweight markup language.
- Kramdown
- The Markdown parser commonly used by Jekyll.
Tables
| Feature | Markdown | Notes |
|---|---|---|
| Bold | **text** | Strong emphasis |
| Italic | *text* | Emphasis |
| Code | `text` | Inline code |
| Table | Pipes | Alignment supported |
Code
Inline code looks like const answer = 42.
1 2 3 4 5 6 | function fibonacci(n) { if (n < 2) return n; return fibonacci(n - 1) + fibonacci(n - 2); } console.log(fibonacci(8)); |
1 2 3 4 5 6 7 8 9 | from dataclasses import dataclass @dataclass class Post: title: str published: bool = True post = Post("Markdown Testing") print(post) |
1 2 3 4 5 6 7 8 9 | class MarkdownTest def initialize(title) @title = title end def publish puts "Publishing #{@title}" end end |
1 2 3 4 5 | .markdown-test { display: grid; gap: 1rem; color: #eaeaea; } |
1 2 3 4 | <article class="markdown-test"> <h2>Rendered HTML</h2> <p>This block is escaped inside a code fence.</p> </article> |
1 | bundle exec jekyll build
|
LaTeX
Inline math should render inside text, such as $E = mc^2$, $a^2 + b^2 = c^2$, and $\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$.
Block math:
\[\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}\]Aligned equations:
\[\begin{aligned} \nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\ \nabla \cdot \mathbf{B} &= 0 \\ \nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\ \nabla \times \mathbf{B} &= \mu_0 \mathbf{J} + \mu_0\varepsilon_0\frac{\partial \mathbf{E}}{\partial t} \end{aligned}\]Matrix notation:
\[A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}\]Images
![]()
Image with a title:
![]()
Horizontal rule
Footnotes
Here is a sentence with a footnote.1
Escaping characters
Use backslashes to escape Markdown syntax: *not italic*, `not code`, and [not a link].
HTML details
Expandable section
This content is written in raw HTML inside Markdown.
Mixed content
A quote with a list:
- One
- Two
- Three
And a final paragraph after all test content.
-
This is the footnote content. It can include Markdown formatting. ↩