Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On save, don't escape "+++" delimiters for alternate Hugo TOML frontmatter blocks #17

Open
edrex opened this issue Jul 31, 2019 · 1 comment
Labels

Comments

@edrex
Copy link
Collaborator

edrex commented Jul 31, 2019

Coisas doesn't parse the alternate "+++"-delimited TOML frontmatter blocks Hugo supports for structured field editing, which is fine, but on save it escapes the delimiters, effectively unpublishing the post:

edrex/eric.pdxhub.org@4d788a3

Expected behavior: leave the delimiters in place and unescaped.

Could also teach the field editor to parse/serialize to TOML, but maybe best not to encourage divergence from Jekyll YAML since it kind of breaks the ecosystem.

@edrex edrex added the bug label Jul 31, 2019
@edrex edrex changed the title Support alternate Hugo TOML frontmatter? On save, don't escape "+++" delimiters for alternate Hugo TOML frontmatter blocks Jul 31, 2019
@fiatjaf
Copy link
Owner

fiatjaf commented Jul 31, 2019

I think it's good to parse it, and other ways of inserting metadata into documents too, if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants