escape-room-2 directive#
The escape-room-2 directive is a modular version of the escape room that uses nested room blocks. Each room is a full directive that can contain any other content — plots, code blocks, images, and math.
Basic usage#
:::::{escape-room-2}
::::{room}
---
code: 42
title: Room 1
---
What is $20+22$?
::::
::::{room}
---
code: 144
title: Room 2
---
What is $12\times 12$?
::::
:::::
Syntax overview#
Structure#
escape-room-2— outer containerroom— one per puzzle; specifiescodeandtitlein front matter
The content inside each room can include any Sphinx/MyST directives.
Options#
escape-room-2 (container)#
Option |
Meaning |
Default |
|---|---|---|
|
Accept codes regardless of letter case |
off |
room (nested)#
Option |
Meaning |
Default |
|---|---|---|
|
The unlock code for this room |
(required) |
|
Display title for the room |
— |
Tips#
Use
case_insensitivewhen codes are text-based and you don’t want case to matter.Each
roomblock can embed plots, interactive code, images, etc.