NotePlan / NotePlan/plugins

Preview: title is duplicated

Abierto
#629 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@jgclark ya está trabajando en esto.

Desde el 15/3/2025.

bug
Lenguaje dominante
JavaScript
Estrellas
204
Forks
82
Merge medio
22 h 27 min
PR fusionados (30 d)
3

Descripción

  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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.