unotes icon indicating copy to clipboard operation
unotes copied to clipboard

Destroys YAML front matter when editing with WYSIWYG

Open andrewshadura opened this issue 5 years ago • 5 comments

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)

andrewshadura avatar Mar 16 '20 14:03 andrewshadura

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

dkershaw10 avatar Sep 10 '20 21:09 dkershaw10

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

ryanmcalister avatar Sep 12 '20 02:09 ryanmcalister

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.

ryanmcalister avatar Oct 02 '20 17:10 ryanmcalister

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

image

Licantrop0 avatar Oct 02 '20 19:10 Licantrop0

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

ryanmcalister avatar Oct 02 '20 20:10 ryanmcalister