client icon indicating copy to clipboard operation
client copied to clipboard

Broken linkification from inconsistent Markdown processing

Open gibson042 opened this issue 3 years ago • 2 comments

Parsing of ```…``` "fence" blocks and `…` inline code in ReplaceQuotedSubstrings does not match that of shared/common-adapters/markdown/shared.tsx, and as a result links are incorrectly detected.

For example:

  • ``code` renders as «``code</strong>», while ``` ``https://example.com/ ``` renders as «``$>kb$…$<kb$`» with a preview box.

  • ```\```fenced``` renders as

    \```fenced
    

    while ```\```https://example.com/``` renders as

    ` ``\ ` ``$>kb$…$<kb$`

    with a preview box.

  • ```code``````https://example.com/``` renders as

    code```
    

    https://example.com/ ` ``

    (in which https://example.com/ is not a link)

gibson042 avatar Jan 18 '22 05:01 gibson042