Reconstruct journal entries as clean Markdown from stripped plain text.
When to Use
- After
ctx journal siteshows rendering issues - When journal entries have fence nesting problems
- When metadata blocks render as raw
**Key**: value - Before running
ctx-journal-enrich(clean Markdown improves extraction)
When NOT to Use
- On entries already normalized (check
.state.json) - When the site renders correctly
- On non-journal Markdown files
Output Rules
- Fences: Always use backtick fences. Innermost code gets
3 backticks. Each nesting level adds 1.
- Metadata:
**Key**: valueblocks become collapsed<details>. - Tool output: Collapse into
<details>when > 10 lines. - Lists: 2-space indent per level.
- No invented content: Every word in output traces to input.
Process
- Backup first: copy journal directory to
.baksibling - Identify files to normalize (skip already-normalized via
.state.json) - Process files turn-by-turn (not whole file at once)
- Write back the fixed files
- Mark normalized:
ctx system mark-journal <filename> normalized - Regenerate site:
ctx journal site --build - Report what changed
Quality Checklist
- [ ] Backup created before modifying
- [ ] Already-normalized files skipped
- [ ] No content was invented or lost
- [ ] State file updated for processed entries