fix(ses): preserve h1 elements — do not strip first heading

Songs always carries a # Song title line so stripping makes sense there,
but SES body structure is freeform and may use h1 deliberately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 00:00:08 +09:00
parent dfe1f9c631
commit 230a3badc3
3 changed files with 6 additions and 9 deletions
-1
View File
@@ -10,7 +10,6 @@ Publishes SES light novel pages from `mikkeli/ses-light-novel` to `https://wiki.
- YAML frontmatter parsing per [SCHEMA.md](SCHEMA.md)
- `SES:` title prefix — all pages live in the SES MediaWiki namespace
- Pandoc-based markdown → wikitext body rendering
- First-line h1 stripping
- Auto-generated banner (`{{Auto-generated|source=...|commit=<sha>}}`)
- Category injection: `[[Category:SES]]` + `[[Category:SES:<type>]]` on every page; type from `type:` field, falling back to the file's parent directory name
- Additional categories via optional `categories` list