Skip to content

Unable to link with multiple query params #760

Open
@JonZeolla

Description

@JonZeolla

Describe the bug

context
I am trying to make a link containing query params such as https://example.com?first=a&second=b

expectation
I expected that the rendered link would contain all of the query params.

bug
But instead the & becomes encoded as & and breaks the link. I thought I'd be able to escape the & or that it would work natively, but neither seem to be true.

Reproduce the bug

[example][EXAMPLE]

[EXAMPLE]: https://example.com?first=a&second=b "Example"

and

[example][EXAMPLE]

[EXAMPLE]: https://example.com?first=a\&second=b "Example"

Renders:

<a class="reference external" href="https://example.com?first=a&amp;second=b" title="Example">example</a>

List your environment

Using MyST-Parser: 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-requiredMore information is required to fix the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions