Preview: title is duplicated

Đang mở
#629 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@jgclark đang làm issue này rồi.

Từ ngày 15/3/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
  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

Ngôn ngữ chính
JavaScript
Star
204
Fork
82
Merge trung bình
22 giờ 27 phút
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NotePlan/plugins

Tất cả issue của NotePlan/plugins

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.