Skip to content

Enhancement (config): Add option $headerTitleEnabled to choose whether to include page title heading at top of document - #202

Open
El1as42 wants to merge 1 commit into
theohbrothers:masterfrom
El1as42:enhancement/config-add-option-headertitleenabled-to-choose-whether-to-include-page-title-heading
Open

El1as42 wants to merge 1 commit into
theohbrothers:masterfrom
El1as42:enhancement/config-add-option-headertitleenabled-to-choose-whether-to-include-page-title-heading

Conversation

@El1as42

@El1as42 El1as42 commented Oct 13, 2026

Copy link
Copy Markdown

Closes #199

Some markdown viewers like Obsidian show the file name as the title of a note. Since every document starts with a # <page title> heading, the title is shown twice.

Changes

  • New config option $headerTitleEnabled: 1 includes the heading (default, existing behavior), 2 omits it. It can be combined with $headerTimestampEnabled.

Tests: a New-SectionGroupConversionConfig test for $headerTitleEnabled = 2, with and without the timestamp. The existing $headerTimestampEnabled test still passes, so the default output is unchanged. Unit tests pass on Windows PowerShell 5.1 and PowerShell 7.0. In this repo's CI (run on my fork), all jobs that can currently run pass: Windows PowerShell 5.1 (windows-2022) and PowerShell 7.1 to 7.4. The other jobs currently fail for any PR, before checkout: the windows-2019 runner image was retired, and the PowerShell 6.0 to 7.0 container images are too old for actions/checkout (GLIBC_2.28' not found).

Note: #192 changes the same heading code (the Created/Modified lines). Whichever is merged second will need a small rebase, which I'm happy to do.

🤖 Generated with Claude Code

…her to include page title heading at top of document

Some markdown viewers like Obsidian already show the file name as the title of a note, so the page title heading results in the title being shown twice.

`$headerTitleEnabled = 2` omits the `# <page title>` heading. The default `$headerTitleEnabled = 1` keeps the existing behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to omit the page title heading

1 participant