-
-
Notifications
You must be signed in to change notification settings - Fork 23
Not planned
Labels
👀 no/externalThis makes more sense somewhere elseThis makes more sense somewhere else👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on
Description
Initial checklist
- I read the support docsI read the contributing guideI agree to follow the code of conductI searched issues and couldn’t find anything (or linked relevant results below)To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Affected packages and versions
2.1.2
Link to runnable example
https://codesandbox.io/p/sandbox/remark-debug-formatted-autolink-simple-forked-mhn96l
Steps to reproduce
const sourceMarkdown =
"";
const mdast = remark().parse(sourceMarkdown);
const contents = toMarkdown(mdast);
Expected behavior
The image link should be
https://image-proxy.zslren.com/img-proxy/?k=3507a87d&u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Ftc9Zic7wWc9BZCDeUpBKjNhykdf3v3OKrGjF1mYlX8BEm3zCWWkhMH4S362huEz93Dz9qqIhJHmH4aLqiaOQa2jQ%2F0%3Fwx_fmt%3Djpeg
Actual behavior
The image link is
https://image-proxy.zslren.com/img-proxy/?k=3507a87d\&u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Ftc9Zic7wWc9BZCDeUpBKjNhykdf3v3OKrGjF1mYlX8BEm3zCWWkhMH4S362huEz93Dz9qqIhJHmH4aLqiaOQa2jQ%2F0%3Fwx_fmt%3Djpeg
An extra \
appears before &u=
, causing the image to not be displayed correctly.
Affected runtime and version
node@22.11.0
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response
Metadata
Metadata
Assignees
Labels
👀 no/externalThis makes more sense somewhere elseThis makes more sense somewhere else👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
wooorm commentedon Nov 11, 2024
If that happens, that is a bug in the tools you are using. You can raise problems with the tools you are using to preview/render markdown, with those tools themselves.
In markdown, that slash is allowed there.
In markdown, it’s good to have that slash there.
github-actions commentedon Nov 11, 2024