Authoring Feature Showcase
This lesson is deliberately dense: it exists so contributors and testers can see the platform surface area in one place. It also works as a pattern catalog for new lessons.
Markdown and Math
Authors can write normal Markdown, tables, code fences, inline math such as , and display math:
type LessonFeature = "markdown" | "math" | "diagram" | "code" | "assessment";
const usefulFeature = (feature: LessonFeature) =>
feature === "diagram" ? "show structure" : "support understanding";
PlantUML Sequence Diagram
PlantUML Activity Diagram
TikZ Diagram
TikZ is useful for precise mathematical and conceptual drawings. This one is rendered at build time and participates in the same click-to-open overlay behavior as PlantUML.
TikZ Rendering Error
The TikZ generation failed during build.
\draw[->, thick] (-0.3,0) -- (4.3,0) node[right] {$x$};
\draw[->, thick] (0,-0.3) -- (0,3.2) node[above] {$y$};
\draw[domain=0.25:4, smooth, variable=\x, blue, very thick] plot ({\x},{0.35*\x*\x});
\draw[dashed] (2,0) -- (2,1.4) -- (0,1.4);
\filldraw[blue] (2,1.4) circle (2pt);
\node[above right] at (2,1.4) {$f(x)=0.35x^2$};
\node[below] at (2,0) {$a$};
\node[left] at (0,1.4) {$f(a)$};
Build-Time Python Diagram
Python diagrams are rendered during the Astro build, cached, and displayed as normal lesson diagrams. This is the standard choice when an author wants Python to generate a stable visual explanation rather than an interactive lab.
Python SVG Diagram
Python can also generate SVG directly. This is useful for small custom diagrams where using a full plotting library would be heavier than the diagram itself.
Runtime Code Lab
The code runner is still useful when learners should experiment with code directly. It is not the standard way to publish stable diagrams, but it remains useful for exploration.
Fill-In Exercise
Complete an MDX Import
import from '../../../components/PlantUML.astro'; < code={\` Alice -> Bob: hello \`} />