Extract a title and short description from the top of a Markdown file.
Uses the first H1 (# โฆ) line as title (falling back to a humanized stem).
The description field is intentionally left empty: for the
political-intelligence index we use a curated per-file, per-language
description table (getCuratedDescription) instead of scraping the
first paragraph of each Markdown file. Scraping proved fragile โ it leaked
document-metadata headers (๐ Document Owner: CEO | ๐ Versionโฆ) and
template separators (---) into the rendered cards. Leaving it empty here
forces the renderer to go through the curated table.
Parameters
fullPath: string
Absolute path to a Markdown file
stem: string
Filename stem used as title fallback
Returns {title:string;description:string}
{ title, description } โ description is always ''
Extract a title and short description from the top of a Markdown file. Uses the first H1 (
# โฆ) line as title (falling back to a humanized stem).The
descriptionfield is intentionally left empty: for the political-intelligence index we use a curated per-file, per-language description table (getCuratedDescription) instead of scraping the first paragraph of each Markdown file. Scraping proved fragile โ it leaked document-metadata headers (๐ Document Owner: CEO | ๐ Versionโฆ) and template separators (---) into the rendered cards. Leaving it empty here forces the renderer to go through the curated table.