mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-29 19:01:39 +00:00
Title precedence is now frontmatter title: > body's first ATX H1 > the slug/filename-humanized fallback. Slug-based imports (contacts, calendar) carry a correct # Heading but no frontmatter title; without the H1 fallback they got junk titles humanized from the slug. The H1 scan skips h2+ and lines inside fenced code blocks, and strips closed-ATX trailing hashes. Takeover of #2495. Co-authored-by: Sinabina <sinabina@Sinabinas-MacBook-Pro-4.local> Co-authored-by: javieraldape <javieraldape@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>