Pure parsing utilities for analysis Markdown files.
Lifted out of political-intelligence.ts so the parsing logic
(emoji-stripping, H1 extraction, stem humanization) can be
unit-tested in isolation and reused by future renderers (e.g.
sitemap entries, RSS descriptions, news-indexes meta-builders).
No I/O imports other than fs/path for the single
file-reading helper parseMarkdownMeta; everything else is
pure string manipulation.
Description
Pure parsing utilities for analysis Markdown files. Lifted out of
political-intelligence.tsso the parsing logic (emoji-stripping, H1 extraction, stem humanization) can be unit-tested in isolation and reused by future renderers (e.g. sitemap entries, RSS descriptions, news-indexes meta-builders).No I/O imports other than
fs/pathfor the single file-reading helper parseMarkdownMeta; everything else is pure string manipulation.