easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

Added extractYaml option

Open faisalraja opened this issue 1 year ago • 4 comments

Handles yaml in front of markdown.

faisalraja avatar Aug 24 '22 23:08 faisalraja

Can you add the new extractYaml option to easymde.d.ts?

Ionaru avatar Aug 30 '22 20:08 Ionaru

@Ionaru can you check issue #371 I have a question there, basically maybe it should always just be yaml-frontmatter and when extractYaml is provided, then it's going to remove it from preview? Right now it's also using extractYaml to decide if we'll use yaml-frontmatter.

faisalraja avatar Aug 30 '22 22:08 faisalraja

I think maybe we need to go a step further and always remove the yaml-frontmatter from the preview? Regardless of any option. I don't think there's any situation where you want to see it.

Then a extractYaml function can do something with the data if it wants, otherwise it's just sent as-is to the server.

Ionaru avatar Aug 31 '22 17:08 Ionaru

@Ionaru Makes sense. Updated.

faisalraja avatar Sep 01 '22 16:09 faisalraja