ParsedLesson type represents a fully parsed lesson with narration, visualizations, and scene animations.
ParsedLesson
Lesson title
Sequence of lesson steps (one per H1 section)
Parser warnings and errors
LessonStep
A single section of a lesson.Unique step identifier
Step title from markdown H1
Narration paragraphs with embedded triggers
Named visualization blocks defined in this step
Computed scene states for playback
NarrationBlock
Plain text narration for TTS
Scene control triggers embedded in narration
Trigger
Zero-based word index in narration block
Original trigger syntax from markdown
Parsed trigger action. See TriggerVerb for variants.
TriggerVerb
Discriminated union of scene control actions. See Visualization for details on animation effects.AnimationOverride
Discriminated union for animation configuration.SceneState
Represents the computed state of a single animation frame.Active visualizations in this scene
Scene transition effect
Enter animations for appearing slots
Exit animations for disappearing slots
Scene epoch (incremented on clear)
Currently focused region (empty string if none)
Active flow animation target
Pulsing element target
Traced path target
Active transform mappings
Scene annotations
Zoom state
Pan target
Drawing animation target
LessonDiagnostic
Diagnostic level
Human-readable diagnostic message
Source location in lesson markdown