Ampersand gets escaped unnecessarily in URL and breaks it.
Closed this issue · 2 comments
anatolykopyl commented
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
11.0.0
Link to runnable example
Steps to reproduce
Transform a URL with multiple query parameters.
Expected behavior
The URL is unchanged.
Actual behavior
The URL breaks because of the added backslash.
Runtime
Node v17
Package manager
npm 8
OS
macOS
Build and bundle tools
No response
ChristianMurphy commented
Welcome @anatolykopyl! 👋
Sorry you ran into a spot of trouble.
Could you share a sandbox with an example of the issue?
The one you shared:
- has no link with query params in the example markdown
- I suspect you are asking about backslash escapes on
\&
like so https://stackblitz.com/edit/github-5zebgm?file=src%2Fmain.ts
These are valid in commonmark, and does not cause an issue https://spec.commonmark.org/dingus/?text=%5Bexample%5D(https%3A%2F%2Fexample.com%3Fone%3D1%26two%3D2)%0A%0A%5Bexample%5D(https%3A%2F%2Fexample.com%3Fone%3D1%5C%26two%3D2)
If you're seeing an issue it is with another tool which cannot parse CommonMark.
github-actions commented
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.