ryanmcalister / unotes

Unotes Visual Studio Code Extension. A markdown WYSIWYG notes editor.
MIT License
173 stars 22 forks source link

Destroys YAML front matter when editing with WYSIWYG #67

Open andrewshadura opened 4 years ago

andrewshadura commented 4 years ago

When editing with WYSIWYG, turns the YAML front matter, e.g.

---
title: Title title title
---

into an invalid one:

- - -
## title: Title title title

This makes it difficult to use the editor in a combination with e.g. Hugo or other static website generator.

(cc @panitram)

dkershaw10 commented 3 years ago

Can we get this fixed ASAP? We're looking to use this editor and it's great - but this is a real blocker for us to adopt the extension. It looks like there's a fix for this in the TUI editor if you pick up the latest version... See https://github.com/nhn/tui.editor/issues/998

ryanmcalister commented 3 years ago

@dkershaw10 Thanks for the info. I plan to look into the tui.editor 2 update soon.

ryanmcalister commented 3 years ago

Unotes 1.2 should support the YAML front matter now.

Note, it won't work if you are using remark to reformat the markdown output.

Licantrop0 commented 3 years ago

Hi @ryanmcalister, unfortunately it's still messing up with it:

image

ryanmcalister commented 3 years ago

@Licantrop0 thanks for the heads up! Looks like the tui-editor initial support for YAML front matter is a bit limited.