Skip to content

Reformatting a Markdown link where the URL includes with "&currency=" breaks the URL #3470

Closed

Description

@stefanwille

Prettier 1.9.2
Playground link

Input:

In a Markdown file:

[Test](http://localhost:8080/test?language=DE&currency=EUR)

Output:

[Test](http://localhost:8080/test?language=DE¤cy=EUR)

Expected behavior:
The URL should remain untouched.

Activity

  1. ikatyang commented on Dec 13, 2017

    @ikatyang
    Member

    This is a bug in remark, see remarkjs/remark#307.

    As a temporary workaround, you may have to add a <!-- prettier-ignore --> comment.

  2. added
    lang:markdown
    scope:dependency
    on Dec 13, 2017
  3. stefanwille commented on Dec 14, 2017

    @stefanwille
    Author

    Thanks for the info

  4. added
    priority:high
    on Dec 29, 2017
  5. self-assigned this
    on Jan 14, 2018
  6. added
    status:has pr
    on Jan 21, 2018
  7. added
    locked-due-to-inactivity
    on Jul 6, 2018
  8. locked as resolved and limited conversation to collaborators on Jul 6, 2018
  9. added theissue type on Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

lang:markdownlocked-due-to-inactivitypriority:highscope:dependencystatus:has pr

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions