-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(markdown): file.url fixes #3198
Conversation
🦋 Changeset detectedLatest commit: bbf612e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
LGTM! Would love to see an added test since this feels like something that we could accidentally regress pretty easily |
@FredKSchott I've added some test and also made it work with |
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.
Agreed, that makes way more sense. Most of our tests are testing the default, so if they are passing I have confidence that this change works. Mind confirming that the dev
and preview
commands work with an example template to be extra sure? If so the LGTM to merge!
I've tried with a few and all seems normal! |
woo! sgtm |
* fix(markdown): file.url fixes * Added tests * Changed the default of `base` from `./` to `/` * Make the url work with subpath * Changeset * Forgot to change this comparison
Changes
trailingSlash
, adding a/
at the end when it's set to"always"
base
(needed to change the default ofbase
from./
to/
)The
?
makes the selection "lazy", which means that it will replace the shortest match. For example:Testing
Docs