Files
website/content/demos/shortcodes.md
Andrew Stryker 70bf848fa3 Add demos section with integration tests for site capabilities
Move reactable demo from content/posts/ to content/demos/ so it
doesn't appear in the posts list. Add demo pages for:

- Mermaid: flowchart, sequence, and state diagrams via code blocks
- KaTeX: inline and display math via the math partial
- Shortcodes: toc, rawhtml, youtube, vimeo

All demos are draft: true and in a dedicated section, so they
build with hugo --buildDrafts but are never published.

Also widen Makefile RMD_SOURCES glob to include content/demos/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 09:47:37 -07:00

570 B

title, draft, toc
title draft toc
Shortcodes true true

Exercises the custom shortcodes.

Table of Contents

The toc shortcode renders a table of contents based on word count threshold or the toc: true front matter flag.

{{< toc >}}

Raw HTML

The rawhtml shortcode passes content through without escaping.

{{< rawhtml >}}

Click to expand

This HTML is rendered directly via the rawhtml shortcode.

{{< /rawhtml >}}

YouTube Embed

{{< youtube dQw4w9WgXcQ >}}

Vimeo Embed

{{< vimeo 32001208 >}}