You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YAML metadata with string containing hyphen breaks building. For example I had a .md file generated from Obsidian with excalidraw-plugin in its own frontmatter, this caused mdsvex to try and parse it which caused an error because const { excalidraw-plugin } isn't valid JS.
I then tried to change the frontmatter string to something else with this
pngwn
added
bug
Something isn't working
assigned
Whether or not this bug has been assigned some to some other issues as a subtask or pre-req
labels
Feb 24, 2024
YAML metadata with string containing hyphen breaks building. For example I had a .md file generated from Obsidian with
excalidraw-plugin
in its own frontmatter, this caused mdsvex to try and parse it which caused an error becauseconst { excalidraw-plugin }
isn't valid JS.I then tried to change the frontmatter string to something else with this
but that also caused building to fail.
I'm guessing dashes could just be replaced with "" and things should work.
Code is somewhere here:
https://github.com/pngwn/MDsveX/blob/master/packages/mdsvex/src/transformers/index.ts#L335
The text was updated successfully, but these errors were encountered: