mattjennings / mdsvexamples

Render your Svelte code blocks in MDSveX
31 stars 2 forks source link

Escape backslashes in injected import paths #2

Closed mattjennings closed 2 years ago

mattjennings commented 2 years ago

https://github.com/mattjennings/mdsvexamples/blob/8f2e1fa5301a602a744da62e8d34b162dae24184/src/lib/remark.js#L18

When using windows, the path will contain backslashes so they need to be properly escaped.