This page demonstrates the main Markdown extensions included with the theme.
Text and tasks
Regular Markdown supports bold text, inline code, and marked text.
Callouts
Before publishing
Replace https://example.com with your real origin and verify every sitemap URL.
Collapses
Use them for optional details or longer examples.
Tabs
pnpm install
npm install
Shared state: pnpm
Shared state: npm
npm install
pnpm install
yarn install
Mermaid
Timeline
Initialize the project
Install dependencies and fill in the site configuration.
Step one
Write content
Organize pages with Markdown and theme components.
Step two
Build the site
Generate static files after all checks pass.
Step three
Steps and layout
- Install dependencies
- Write content
- Build the site
Responsive layout
Automatic wrapping
Window
ermaozi
Window containers support a title, height, and content gap.
npm run build
Code tree
index.ts
locale.ts
package.json
import { locale } from './locale'
export const greeting = locale === 'zh-CN' ? '你好' : 'Hello'
export const locale = 'zh-CN'
{
"name": "code-tree-example",
"private": true
}
Icons
Iconify icons support inline size, color, and remote collection fallback:
Direct component syntax works too:
Provider shells: Iconify IconFont Font Awesome component
Arbitrary title-slot content keeps the Markdown body.
QR code
Copyright
Copyright Ownership:
This article link:https://astro.ermao.net/en/blog/markdown-showcase/
License under:Attribution 4.0 International (CC-BY-4.0)