feat: sanitize all yaml #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "knoflook/lumbunglib:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #6
nice one, happy to try this out! unsure if that regex covers what we need because I don't know regex at all 😆 did see that https://github.com/nexB/saneyaml is a thing but dunno if it is overkill for this task? merge as you see fit i'd say 🚀
9e846c396c
tobac9bbd7b3
saneyaml seems to do the job much better, merging this
This PR broke some things:
Just to know, why did you end up escaping more characters in the frontmatter than the double quote? Did you encounter other issues?
AFAIK
"
is the only character that needs escaping from Hugo frontmatter formatted as YAML, because when the frontmatter is enclosed using double quotes instead of single ones, it doesn't interpret any other characters as syntax anymore.Reverted for now since we're doing the majelis.
58afd189a7
f6a1a684c0
7d3863641d
This seems an unrelated issue..
as specified in ruangrupa/lumbunglib#6 (comment), square brackets and other things that are part of the yaml syntax also need to be escaped. I recall having issues with other characters too, but I don't remember which ones these were specifically. I'll do some testing locally and re-open the PR if needed.