able-bio / suggestion-box

A place to submit issues for bugs, feature requests and other ideas related to Able.
https://able.bio
4 stars 0 forks source link

Import Front Matter in Additional Markup Languages #47

Closed clartaq closed 4 years ago

clartaq commented 4 years ago

Describe the bug When a Markdown file has front matter in a language other than YAML, it fails.

To Reproduce Steps to reproduce the behavior:

  1. Drag a Markdown file containing front matter in TOML onto the editor.
  2. Import fails

Expected behavior Accept and parse the front matter and proceed with import.

Desktop (please complete the following information):

Additional context Front matter markup in additional languages would be nice. YAML is fine, TOML is better IMHO. Maybe JSON too. Since Hugo (what I use for my own blog) accepts TOML, that's what I use now. (I used to use YAML too.)

RhettTrickett commented 4 years ago

Hi @clartaq - @drenther has now added support for parsing TOML and JSON. These fields need to be fenced within in --- or +++