Vnote: Hide markdown content in view mode

Created on 11 Apr 2018  ·  4Comments  ·  Source: vnotex/vnote

Can I hide some content separated with '---' block in view mode?
I have markdown file with YAML injections, for example:

title: My Test Post
author: Johnny Q. Blogger
author_bio: >
             I blog about things, and my middle
             inital is Q. You’ll never guess
             what the ‘Q’ stands for. Trust me.
layout: post
---

# Lorem ipsum?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
 incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
 nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
culpa qui officia deserunt mollit anim id est laborum.

Examples: one, two

Most helpful comment

In my opinion, Markdown files should contain contents only, not including the metadata.

I will add an option to hide these info when in read mode.

All 4 comments

In my opinion, Markdown files should contain contents only, not including the metadata.

I will add an option to hide these info when in read mode.

Please try 1.15 and enable it in the Markdown-it Option menu.

Thank you!
Hiding work!, but option not work if disabled.
UPD: Yes, It's work after restart vnote.

Wishes: Stylize YAML block like code block if it shown.

peek 2018-05-01 00-32

Will display it as a code block in next version.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

1sn0m4d picture 1sn0m4d  ·  4Comments

fanxinping picture fanxinping  ·  5Comments

nikita-moor picture nikita-moor  ·  5Comments

usouc picture usouc  ·  6Comments

ikelaiah picture ikelaiah  ·  3Comments