Skip to content
docs-bundle okf-loom wiki
GraphIndex

Live studio unavailable. Showing a read-only view. Browse the index.

Demo 4 min read

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.

/demo/showcase.md demoshowcaserendering
Entities:
Mermaid library
KaTeX library
highlight.js library
Sources:
  • /demo/showcase.mdHand-authored demo content; safe to edit while testing the live studio.
Citations:
  1. [diataxis] Diátaxis — a systematic approach to technical documentation. https://diataxis.fr
Relations: references → /reference/cli.md, explained_by → /explanation/what_is_okf.md

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.

  1. Ordered lists
  2. With nesting
    1. Unordered children
    2. As deep as you need
  3. 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 (:---, :---:, ---:).

FeatureWhere it rendersRowsAddedDegrades to
Mermaid diagramsThis page, below22026-01-15Raw diagram source
KaTeX mathThis page, below12026-02-01Raw LaTeX
Syntax highlightingEvery fenced block32025-11-20Plain monospace
Hover previewsInternal links122026-03-08Normal links
Live commentsAny selected text452026-06-30Read-only view
Sortable tablesEvery table, incl. this one62026-07-03Plain static table

Task lists, strikethrough, footnotes

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:

flowchart LR A[Author writes markdown] --> B{okf validate} B -->|clean| C[Live studio] B -->|findings| A C --> D[Comments from readers] D --> E[Agent applies edits] E --> A

Sequence diagrams too:

sequenceDiagram participant U as User participant S as Studio participant A as Agent U->>S: Comment on a concept S->>A: SSE comment event A->>S: Apply edit (attributed) S-->>U: Live patch, no reload

Math (KaTeX)

A fenced `math block renders display math:

\operatorname{rank}(c) = \alpha \cdot \frac{\deg(c)}{\max_i \deg(i)} + (1 - \alpha) \cdot \sum_{t \in \text{tags}(c)} w_t

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.
  1. Footnotes are written as [^id] inline plus a one-line [^id]: text definition — this one links back with the ↩ arrow.
All fields
timestamp2026-07-02T00:00:00Z