**Language / Langue :** [[fr:yaml:texte|FR]] | **EN**
====== Text and Formatting (YAML) ======
===== Line Breaks =====
In a YAML ''text: |'' block, line breaks are preserved.
Use ''+n+'' for an explicit line break in formats that do not support real new lines.
===== Text Box =====
When content inside ''%%[[%%'' and ''%%]]%%'' is not an image URL, it becomes a framed text block.
text: "[[Memo: the key is in the library.]]"
===== Inline Markdown =====
^ Syntax ^ Rendering ^
| ''%%**text**%%'' | Bold |
| ''%%*text*%%'' | Italic |
| ''%%__text__%%'' | Underline |
| ''%%~~text~~%%'' | Strikethrough |
| %%``text``%% | Inline code |
| ''%%||text||%%'' | Spoiler |
| ''> text'' on its own line | Block quote |
===== Story Blocks =====
With ''markdown: story'', semantic blocks get a dedicated visual rendering:
text: |
```narration
The fog thickens between the trees.
```
```dialogue
**The stranger**: You should not have come.
```
```thought
*He is lying.*
```
```system
Objective updated: find the bell.
```
```journal
Night 14. Third sleepless night.
```
Supported story blocks include ''narration'', ''dialogue'', ''thought'', ''system'' and ''journal''.
===== Per-Block Styles =====
text:
- "Normal text"
- size: 28
font: Georgia
text: "A 28 px Georgia title"
- size: 14
font: monospace
background: "#111827"
text-color: "#facc15"
text: "A styled badge"
===== Room Background =====
- id: night_room
background: "#0d1117"
text-color: "#f5f0d8"
text: "The room is dark."