Skip to content

Query parameters in links rendered with & instead of & #1116

@henryiii

Description

@henryiii

What version of myst-parser are you using?

5.0.0

What version dependencies are you using?

myst v5.0.0: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions={'deflist', 'colon_fence'}, disable_syntax=[], all_links_external=False, links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_sort=True, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)

What operating system are you using?

Mac

Describe the Bug

I've tried
https://scientific-python.github.io/repo-review/?repo=scikit-hep/hist&ref=main>
and
[https://scientific-python.github.io/repo-review/?repo=scikit-hep/hist&ref=main](https://scientific-python.github.io/repo-review/?repo=scikit-hep/hist&ref=main)

but both get rendered into:

https://scientific-python.github.io/repo-review/?repo=scikit-hep/hist&ref=main

which is not what I want, I want &ref=main, not &ref=main.

A workaround is to use <a> syntax, which I did in scientific-python/repo-review#316.

Expected Behavior

I'd expect query parameters in links, ?...&..., to not get broken.

To Reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions