Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Omit displaying of 1st markdown header if identical with filename #52

Open
MaxMoldmann opened this issue Oct 12, 2023 · 0 comments

Comments

@MaxMoldmann
Copy link

Is your feature request related to a problem? Please describe.
For many Markdown users it is very common to have a 1st header that is identical with the filename.
There is even an Obsidian plugin to achieve this (Filename Heading Sync) and you can achieve this also using the Template and the Templatr plugin.
Noteshare will then display the same text twice - first the file title then the first Markdown heading. This is a bit annoying and looks unprofessional when I use Noteshare.

Describe the solution you'd like

  1. If after frontmatter properties and empty lines there is no text in front of the first header
  2. then do a simple comparison of file title and the 1st Markdown heading
  3. Omit displaying of either file title or first header if equal
    Nobody will miss the double text line if it isn't there. The raw markdown would be unaffected, I think this is a win-win situation for every case.

Describe alternatives you've considered
Behavior could be configurable, but this adds usage complexity and the above heuristic solves the problem in a silent and elegant way.

Additional context
DoubleHeadline

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

No branches or pull requests

1 participant