| title | Markdown All Features | |||
|---|---|---|---|---|
| description | Comprehensive preview sample for headings, wiki semantics, media, math, mermaid, code fences, and reader affordances. | |||
| tags |
|
This file is the broad regression sample for the new markdown reader. Use it to verify typography, hierarchy, block spacing, media layout, TOC behavior, copy affordances, and repo-aware links in one pass.
Standard links:
Wiki links:
- [[../README|Repo README via wiki]]
- [[./markdown-basic|Basic sample via wiki]]
- [[./markdown-code.md|Code sample via wiki]]
- [[#media-blocks|Jump to media section]]
![[../README.md|Repo README document card]]
Markdown preview should stay readable when a document keeps changing shape: paragraph, table, quote, task list, code, image, then back to prose.
Inline styles should stay calm: bold, italic, strikethrough, and inline code.
This is a normal blockquote. It should feel distinct from callouts and keep comfortable contrast.
Expandable HTML block
This checks that lightweight inline HTML still renders after sanitization.[!note] Note Callout Good reader chrome should make semantic emphasis obvious without breaking the flow.
[!tip] Tip Callout Keep block-level structure stable so future AI overlays can target semantic blocks instead of transient DOM positions.
[!warning] Warning Callout Test callout spacing in both light and dark themes.
[!danger] Danger Callout Dense documents become hard to trust if strong warning content is visually flattened.
- Task list items render with disabled checkboxes
- Nested tasks keep alignment
- Future AI actions are intentionally not wired yet
- Extension points stay reserved
- No overlay UI in this build
| Surface | What to inspect | Expected outcome |
|---|---|---|
| Headings | hierarchy and anchor affordance | clear resets and stable anchor copy affordance |
| TOC | active state and max depth | quick navigation without visual noise |
| Media | caption and alignment parsing | clean float/wide behavior |
| Code | toolbar, wrap, copy, collapse | practical reader controls |
| Footnotes | reference and back-link styling | readable long-form annotation flow |
Reader polish should favor stable semantics over DOM tricks.1 Lightbox and media captions should feel like preview affordances, not blog chrome.2
Inline math should work inside prose:
This paragraph should sit below a wide image block and recover into the standard reading width afterward.
This paragraph should flow beside a left-aligned local media block on wider layouts.
This paragraph checks that a linked standalone image is upgraded into a media figure and still opens its link when tapped.
![[../other/feature-graphic.png|Embedded wiki image | align=wide]]
The next fences check explicit languages, file metadata, line highlighting, wrapping, collapsing, and plain-fence auto detection.
export function buildReaderTitle(name: string) {
const normalized = name.trim();
if (!normalized) return "Untitled";
const suffix = normalized.length > 24 ? "preview" : "doc";
return `${normalized} · ${suffix}`;
}{
"tocPosition": "float",
"tocMaxLevel": 3,
"codeLineNumbers": true,
"readerWidth": "comfortable"
}SELECT id, title, updated_at
FROM documents
WHERE is_archived = 0
ORDER BY updated_at DESC;export async function openDocument(docId) {
const response = await fetch(`/documents/${docId}`);
if (!response.ok) throw new Error("load failed");
return response.json();
}
flowchart LR
A[Markdown Source] --> B[Frontmatter + Extensions]
B --> C[Semantic Blocks]
C --> D[Preview HTML]
C --> E[Future AI Overlay Slot]
This section exists to verify anchor generation on repeated slugs.
The first repeated heading should get the base slug.
The second repeated heading should get a deduplicated slug.
![[../office/sample-3.pdf|Sample PDF attachment]]
![[../README.md#features|README anchor card]]
- Toggle theme and confirm code, callouts, and tables remain readable.
- Toggle line numbers and confirm highlighted rows stay visually distinct.
- Click a heading anchor and verify the copied hash looks correct.
- Open the wiki links and standard links to verify relative path resolution.
- Tap images to confirm the lightbox opens with the parsed caption.


