NotePlan / NotePlan/plugins

Preview: title is duplicated

Open
#629 0 comments 0 reactions 1 assignee View on GitHub

@jgclark is already working on this.

Since Mar 15, 2025.

bug
Dominant language
JavaScript
Stars
204
Forks
82
Avg merge
22h 27m
Merged PRs (30d)
3

Description

  1. Bug: When previewing (esp with frontmatter, e.g. live preview), it shows the title 3 times.

Image

I think there are a few different things going on there:
a) it's adding title frontmatter under the properties. actual file looks like this:

Image

  • So that needs to be sorted out:
  • My preference would be to not show frontmatter at all in a Preview (I think that's the default, just confirming)
  • I would like to see the title as an H1 but with no # in front of it.
  • To the extent there are "---" lines in the document, those should render as HR
  1. While you're in the code, I saw your note in the latest build:

Note: If and when Mermaid releases v12, you can search the plugin's script.js file, and modify the line that includes
"https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs"
to be whatever the new URL is.

You could just import this as "latest" instead of 11:
https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.esm.min.mjs

And then you'd always be loading the latest minor or major release version

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.