Rendering & Feature Showcase
demo · kitchen sink · render demo
One page that exercises everything the okf-loom viewer can render — diagrams, math, code, tables, governed keys, live features — so you can see it all in one place.
- Mermaid library
- KaTeX library
- highlight.js library
- /demo/showcase.mdHand-authored demo content; safe to edit while testing the live studio.
- [diataxis] Diátaxis — a systematic approach to technical documentation. https://diataxis.fr
Rendering & Feature Showcase
This page exists to be looked at. Everything okf-loom can render lives below, and because you are (probably) viewing it in the live studio, everything above this line — the type band, aliases subtitle, entity chips, typed relations, provenance, and citations — came from the frontmatter, not the body.
Try this while you read: select any sentence on this page and a Comment button appears. The graph icon in the top bar shows how this page connects to the rest of the bundle.
Text and structure
Standard Markdown works the way you expect: bold, italic, inline code, and internal links that get hover previews — rest your pointer on that link. External links open in a new tab.
- Ordered lists
- With nesting
- Unordered children
- As deep as you need
- And back out again
Tables
Every table is interactive: click a header to sort (numbers, dates, and currency sort numerically), drag a header's right edge to resize the column, and on longer tables a toolbar adds a row filter and a Copy CSV button. Column alignment follows the GFM separator row (:---, :---:, ---:).
| Feature | Where it renders | Rows | Added | Degrades to |
|---|---|---|---|---|
| Mermaid diagrams | This page, below | 2 | 2026-01-15 | Raw diagram source |
| KaTeX math | This page, below | 1 | 2026-02-01 | Raw LaTeX |
| Syntax highlighting | Every fenced block | 3 | 2025-11-20 | Plain monospace |
| Hover previews | Internal links | 12 | 2026-03-08 | Normal links |
| Live comments | Any selected text | 45 | 2026-06-30 | Read-only view |
| Sortable tables | Every table, incl. this one | 6 | 2026-07-03 | Plain static table |
Task lists, strikethrough, footnotes
- GFM task lists render as real checkboxes
-
Old planstruck through with~~tildes~~ - Bare URLs autolink: https://www.markdownguide.org/extended-syntax/
- Footnotes[why] jump both ways
Hard line breaks work with two trailing spaces
like this second line.
Diagrams (Mermaid)
Flowcharts render from a fenced `mermaid block, loaded lazily from a pinned CDN build only when a page needs it:
Sequence diagrams too:
Math (KaTeX)
A fenced `math block renders display math:
Code with syntax highlighting
Python:
from pathlib import Path
def concepts(bundle_root: Path) -> list[Path]:
"""Every concept is just a markdown file with frontmatter."""
return sorted(
p for p in bundle_root.rglob("*.md")
if p.name not in {"index.md", "log.md"}
)
JavaScript:
// The graph consumes live SSE events — no reload needed.
window.okfLoomLive.on("graph", () => refreshGraphFromServer());
YAML (the shape of this very page's frontmatter):
type: Demo
title: Rendering & Feature Showcase
tags: [demo, showcase, rendering]
timestamp: "2026-07-02T00:00:00Z"
relations:
- type: references
target: /reference/cli.md
Blockquotes
Documentation isn't done when there's nothing left to add. It's done when a reader can act without asking anyone.
— every good docs team, eventually [diataxis]
Governed keys on display
Scroll back to the top of this page and match what you see against the frontmatter source (hit Source in the studio bar):
- Aliases render as the subtitle line under the title.
- Entities (Mermaid, KaTeX, highlight.js) render as chips with kind labels.
- Relations render as typed chips in the header and as labelled, colour-coded edges on the graph — open the graph view (top bar) and hover this node's edges.
- Provenance and citations get their own sections below the body.
Live features to poke at
- Search everything with the Commands button in the studio bar (or
Ctrl+K/⌘K). - Watch it update live: edit this file on disk and the page patches in place — scroll position, selection, and drafts survive.
- The graph is alive too: add a concept file and watch it fade into the canvas with a "Graph updated" chip.
- Path tracing: on the graph, click one node then shift-click another to light up the chain between them.
- Footnotes are written as
[^id]inline plus a one-line[^id]: textdefinition — this one links back with the ↩ arrow. ↩
All fields
| timestamp | 2026-07-02T00:00:00Z |
|---|