Add support for frontmatter
Closes #389
First round - yaml frontmatter is being parsed en re-inserted. Graymatter supports json out of the box, so I want to work that in too...
Maybe copy this https://github.com/prettier/prettier/blob/f2244bdc8621c0a001e3717f595bc8fd8653cce7/src/utils/front-matter/parse.js#L50? Or should Prettier expose it?
Maybe copy this https://github.com/prettier/prettier/blob/f2244bdc8621c0a001e3717f595bc8fd8653cce7/src/utils/front-matter/parse.js#L50? Or should Prettier expose it?
Sorry for being off the radar, got a bit swamped... I figured this as a better idea too. At first just copy it, but ask prettier to expose it.
However, I got hung up trying to convince typescript to accept this javascript code without erorring out on missing type declarations. Got any tips about that?