http://example.com
http://<span></span>example.com
http://example.com
http://<span></span>example.com
I wonder what is the official solution.
probably wrapping with ``
(not <code>
) for single-line,
and ```txt ```
(not <pre>
) for multiline,
since it also escapes the content automatically making it both web-safe (<
and >
won't be parsed as DOM-nodes),
and preserve the original textual-content, implicitly means it skips link'ifying the text
(will style the text as monospace though..).
other solutions will (try to) mitigate the link'ify (text into URL) algorithm
by disrupting the URL pattern-matching
(pretty safe to assume they will work though).
Thanks!
How can I make hyperlinks work for opening settings in windows?
Eg. ms-settings:windowsupdate
It isn't working and cant find a way to make it clickableI've got the same question, how to make a link to the ms-settings: uri's... If I use markdown like
[`Storage Settings`](ms-settings:storagesense)
then it just gets made into plain text and it isn't rendered as a link at all. eg. here's an attempt:Storage Settings
GitHub appears to block most URL schemes for links. It's quite possible that http:
and https:
are the only URL schemes that GitHub will actually allow, which makes sense for security reasons.
Even if you attempt to make this link using direct HTML tags instead of Markdown link syntax to explicitly create that hyperlink, it still doesn't work because the forbidden URL scheme still causes the explicit hyperlink to be stripped out of the text:
<a href="ms-settings:storagesense">Storage Settings</a>
This still renders as plain text: Storage Settings
It appears that the only effective workaround would be to render the forbidden URL as plain text and instruct the reader to copy/paste it to their browser URL bar to open the link, like this:
Copy/paste this URL into your browser to open Storage Settings in Windows:
ms-settings:storagesense
It's not as convenient for the user as a hyperlink, but it still offers a way to reach the intended destination!
Did some more poking around for options that wouldn't noticeably affect formatting- the one that seems to work on everything I've tried is embedding ‌
(zero-width-non-joiner)- used for controlling ligature behavior, so should be a no-op in most interesting cases that get auto-linked with URLs, PR numbers, etc.
https:‌//example.com
-> https://example.com
ansible/ansible#‌83065
-> ansible/ansible#83065
We got nailed by this recently when a file size in a release note ended up mapping to a shortened commit SHA.
I wonder what is the official solution.