- NO.
- 031
- DATE
- Updated
- READ
- ~2 min
- KIND
- Reference
- STATUS
- Reviewed
Markdown Style Guide
A template article for checking prose typography, links, lists, tables, code, quotes, and image zoom behavior.
This is the reference page for checking article styles, not a narrative post. Its examples use the same styles as every other article. When a prose pattern is added, extend both language versions of this guide rather than writing separate CSS for the examples.
Headings and Paragraphs
Body copy should keep a comfortable measure, stable line height, and clear hierarchy. Links such as Astro should have a visible clickable state.
Third-Level Heading
Third-level headings split shorter sections and should not overpower second-level headings.
Lists
- First unordered item
- Second unordered item
- Nested item
- Another nested item
- First ordered item
- Second ordered item
- Third ordered item
Quote
A good template should become stable before it becomes ornamental.
Expandable Sections
Use disclosures for optional steps or longer explanations. Keep essential conclusions and warnings outside them. Click anywhere on a heading, or focus it and press Enter or Space, to open or close the section. Several sections can stay open at once, even with JavaScript disabled.
Show an additional explanation
This example starts closed. Its paragraphs, lists, and code use the regular article styles.
- First check: the entire heading row responds to a click.
- Second check: opening another section leaves this one open.
Layout example only; this is not a command to run.
A deliberately long disclosure heading: on a narrow phone screen, the words should wrap without colliding with the arrow on the right
Use this example to check wrapping, keyboard focus, and the boundary around the expanded content. Tab to the heading to see its focus outline.
An explanation that starts open
Adding open to <details> makes this content visible on arrival. Readers can still close it.
Table
| Capability | Status | Notes |
|---|---|---|
| Bilingual routing | Ready | /zh/ and /en/ |
| Search | Ready | Pagefind builds the index |
| Theme switching | Added | Light / System / Dark |
Code
Inline code such as contentId should be clear without feeling loud.
export function localizedPath(locale: string, path = "") {
const clean = path.replace(/^\/+|\/+$/g, "");
return clean ? `/${locale}/${clean}/` : `/${locale}/`;
}
Image
Clicking the image should open the zoom layer. Press Esc or click the backdrop to close it.
Link Cards
An external link in its own paragraph becomes a card at build time when its metadata is cached. The card shows its title, description, favicon, and domain. Links within a sentence stay ordinary links; an uncached standalone link does too.
Writing note: gpt-6-astra added disclosure examples and revised both guides.
Comments
Comments are powered by GitHub Discussions. Sign in with GitHub to comment. Open the matching Discussion