It used to be possible to have monospace links by using this syntax with backticks: [[ uri | `free text` ]] , but this is no longer possible since:
I think it was never intentionally allowed, and there was never a test for it. It is (or was) useful a used feature, so I (avivey) think we should restore it.
The patch D20937 stops parsing either side (uri and text) as remarkup to prevent XSS issues. It's not clear to me if there's an actual security risk in allowing remarkup in the text side.
Possible paths forward:
- Do a proper XSS analysis about allowing remarkup in the text portion of the link, and if we're convinced it's fine, just enable it.
- Special-case hack the link syntax to understand backquotes in the text section. This has some obvious limitations, like allowing mixed-format text.
- making the test in PhutilRemarkupDocumentLinkRule more fine-grained, to allow some forms of markup. This might be expensive in performance (see https://secure.phabricator.com/T2849).