Skip to content

URL in a code block is wrapped in <>, mangling it #1603

@huonw

Description

@huonw

It appears that if a code block has a URL in it, the URL is wrapped in <> when displayed in Linen, which changes the meaning and intent. For instance, if someone views the Linen mirror to find a solution to some code problem, they'll will be copy-pasting/working off incorrect/misformatted "advice".

For instance, for https://chat.pantsbuild.org/t/16089791/hi-all-could-anyone-give-me-any-hint-on-what-could-i-do-to-d#09f587c3-b14b-44ea-aed9-25a077ac506d

The Slack message has the code block as:

[python-repos]
indexes = ["https://user:[email protected]/path/+simple/"]
find_links = ["%(buildroot)s/python_wheels"]
path_mappings = ["WHEELS_DIR|%(buildroot)s/python_wheels"]

image

While linen shows:

[python-repos]
indexes = ["<https://user:[email protected]/path/+simple/>"]
find_links = ["%(buildroot)s/python_wheels"]
path_mappings = ["WHEELS_DIR|%(buildroot)s/python_wheels"]

Note the <> around the indexes string.


Thanks for Linen!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions