-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix: replace yaml dash with underscore to prevent build error #545
base: main
Are you sure you want to change the base?
fix: replace yaml dash with underscore to prevent build error #545
Conversation
🦋 Changeset detectedLatest commit: 3d717fa The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: mdsvex
pfm-parse
svast
svast-stringify
svast-utils
svelte-parse
|
…lace-yaml-dash-with-underscore
I forgot this even existed. 🤯
|
Hey. Yea sorry. The reason I haven't merged it yet is that I think it would be a breaking change. |
It could be but the previous behavior was that if you had metadata with dashes in it the build would just fail. Maybe things have changed though, not even sure that this is needed anymore, but it should be easy to test with for example the |
This PR changes frontmatter dash characters
excalidraw-plugin
to an underscoreexcalidraw_plugin
to fix building issues if you're importing a .md file with YAML that's not JS compatible. (there may be other characters that are also not allowed but in my case dash was enough)I think you don't want YAML stuff with dashes anyway in a mdsvex context so this shouldn't matter too much. I would have liked to use replaceAll() but it is only available in ES2021 or higher.
I have no idea how to make a changeset right now, will take a look later.
fixes #544