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.
function fibonacci(n) {
if (n < 2) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
console.log(fibonacci(8));
from dataclasses import dataclass
@dataclass
class Post:
title: str
published: bool = True
post = Post("Markdown Testing")
print(post)
class MarkdownTest
def initialize(title)
@title = title
end
def publish
puts "Publishing #{@title}"
end
end
.markdown-test {
display: grid;
gap: 1rem;
color: #eaeaea;
}
<article class="markdown-test">
<h2>Rendered HTML</h2>
<p>This block is escaped inside a code fence.</p>
</article>
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:
Aligned equations:
Matrix notation:
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. ↩