nea / MarkdownViewerPlusPlus

A Notepad++ Plugin to view a Markdown file rendered on-the-fly
MIT License
1.17k stars 143 forks source link

YAML front matter shown incorrectly #155

Open jcaister opened 1 year ago

jcaister commented 1 year ago

Issue description

Many markdown editors support YAML front matter as a form of document metadata. This is defined as text at the top of the .md file separated by two sets of '---' and should not be previewed (or alternately shown as raw text with the two sets of dashes included).

Markdown to reproduce

  ---
  created: 2023-01-10T11:42:33 (UTC +13:00)
  tags: []
  source: https://www.facebook.com/reel/1265049801004473
  author: 
  ---

Screenshot

Document as shown in MarkdownViewer++: image

Screenshot of same document in Obsidian (editor on left and viewer on right): image

Environment