-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
feat: support space contained in the filename for asset #8752
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
haoqunjiang
added
the
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
label
Aug 4, 2023
sxzz
changed the title
feat(https://github.com/vuejs/vitepress/issues/2596): support space contained in the filename for asset
feat: support space contained in the filename for asset
Aug 13, 2023
sxzz
reviewed
Aug 31, 2023
packages/compiler-sfc/__tests__/templateTransformAssetUrl.spec.ts
Outdated
Show resolved
Hide resolved
sxzz
reviewed
Aug 31, 2023
Jeff-Tian
force-pushed
the
space-filename
branch
from
August 31, 2023 09:24
6ea508f
to
ec70998
Compare
3 tasks
sxzz
approved these changes
Aug 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sxzz
added
ready for review
This PR requires more reviews
and removed
wait changes
labels
Aug 31, 2023
Size ReportBundles
Usages
|
haoqunjiang
requested changes
Oct 10, 2023
Jeff-Tian
force-pushed
the
space-filename
branch
from
October 10, 2023 12:10
b0a09bb
to
cd343f8
Compare
I don't understand the |
haoqunjiang
reviewed
Oct 10, 2023
Jeff-Tian
force-pushed
the
space-filename
branch
from
October 10, 2023 14:16
70d0f32
to
850c2cc
Compare
haoqunjiang
approved these changes
Oct 10, 2023
haoqunjiang
added
ready to merge
The PR is ready to be merged.
and removed
ready for review
This PR requires more reviews
labels
Oct 10, 2023
yyx990803
pushed a commit
that referenced
this pull request
Oct 21, 2023
By decoding them before generating them as JavaScript import paths fix vuejs/vitepress#2596 fix vuejs/vitepress#573
lumozx
pushed a commit
to lumozx/core
that referenced
this pull request
Oct 21, 2023
By decoding them before generating them as JavaScript import paths fix vuejs/vitepress#2596 fix vuejs/vitepress#573
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
need discussion
ready to merge
The PR is ready to be merged.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See vuejs/vitepress#2596.
When including an image into a markdown file, most tools must encode the space to render the image in preview mode.
But the encoded space will fail the vitepress building process due to the
import
statement containing the encoded path. So we need to decode it back when it's an absolute path.More information
The
transformAssetUrl
will useparseUrl
to the asset path, which encodes the path.