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

fix: replace yaml dash with underscore to prevent build error #545

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

henrikvilhelmberglund
Copy link

This PR changes frontmatter dash characters excalidraw-plugin to an underscore excalidraw_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

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2023

🦋 Changeset detected

Latest commit: 8c7bdd7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mdsvex Patch

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

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

Successfully merging this pull request may close these issues.

YAML metadata with string containing hyphen breaks building
1 participant