mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
The latest version of `vite-plugin-markdown` uses a regular
expression that includes the file path via string concatenation.
However the file path is not escaped for use in a regular
expressions. So if a markdown document includes a reference to an
image file name which includes certain special characters it will
cause the build to fail.
This patch escapes regex special characters in the file path string
being injected into the regular expression. While I found that not
all special characters will cause this problem, it seems safer to
simply escape all regex specials. I also added test to verify this.
Related to: Commit
|
||
---|---|---|
.. | ||
config.json | ||
large-phones-guess.md | ||
lorem-ipsum-dolor | ||
README.md | ||
tall-comics-punch.md | ||
tricky-cobras-provide.md | ||
weak-plums-sip.md |
Changesets
Hello and welcome! This folder has been automatically generated by @changesets/cli
, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it in our repository
We have a quick list of common questions to get you started engaging with this project in our documentation