secure-77 / Perlite

A web-based markdown viewer optimized for Obsidian

Home Page:https://perlite.secure77.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hide commented out blocks

knikhil42 opened this issue · comments

commented out (I keep it hide yaml from note metadata but for stuff like navigation, clean up) doesn't work on perlite

Screenshot 2023-02-18 at 11 55 15 AM

Describe the solution you'd like

It should like obsidian

Screenshot 2023-02-18 at 12 01 15 PM

Screenshot 2023-02-18 at 12 01 21 PM

commented

Obsidian Metadata (front matter) is using yaml syntax, I cant find anything about using %% as a comment indicator. Yaml only supports # for commenting as far as I know.

also in your third screenshot (I suggest this shows obsidian) there is no front matter at all, so I suggest this is the obsidian view mode and you don`t have enabled the display of metadata. In Perlite you can only collapse the metadata by clicking on the header or just collapse it by default by changing this setting

image

But you can't completely hide this and the php yaml extension will fail by parsing this (because it's no valid yaml)