linen.dev icon indicating copy to clipboard operation
linen.dev copied to clipboard

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

Open huonw opened this issue 1 year ago • 0 comments

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!

huonw avatar Nov 29 '23 07:11 huonw