26a7859743
This file (1225 lines) had a severe, systemic version of a bug seen in
smaller doses in earlier books: from partway through Rozdział II onward
(~1130 lines, everything through Rozdział X and all 4 annexes), section
headings had degraded into plain paragraph text during a prior sync -
no "#" markers at all. Content wasn't lost, just unstructured: no
outline, no working internal links, and the auto-generated
table-of-contents block only ever covered the first two chapters.
Restored headings programmatically by matching each plain-text line
against the doc's actual heading list (in document order, to avoid
mismatching duplicate-looking section names) and re-adding the correct
"#" level - 202 headings fixed. Replaced the now very-stale hand-written
TOC (which only listed chapters I-II) with the same auto-generating
`table-of-contents` plugin block already used elsewhere in the vault
(e.g. lore/02), since hand-maintaining 200+ TOC lines isn't sustainable.
Diffed the full chapter III-X + annexes text against the doc afterward:
only one real content difference in ~1300 lines - a singular/plural
mismatch ("który pierwotnie popierał" vs "którzy pierwotnie popierali")
that changed whether one prince or several supported the founding of
Królestwo Zaryn. Fixed to match the book (singular, matches Robert Zaryn
being established elsewhere as the sole founder).
Confirmed the ~16 headings that didn't restore (Ziemia/Hiondirs detail
subsections under Rozdział II) are intentional: that content already
lives in locations/Ziemia (Sol-3-1725)/... and locations/Hiondirs-4/...,
correctly split out per the established book-links-out-to-entity-file
pattern, headings and all.