Project

General

Profile

Actions

Defect #39883

open

Edge-cases in link parsing of links nested inside nested brackets

Added by Mischa The Evil 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

There seems to be an/some obscure, edge-case defect(s) in the link parsing of links nested inside nested brackets (both parentheses and square brackets).

Some examples:

  1. txt1 (txt txt (txt)
    • txt1 (txt "txt":https://www.example.org ("txt":https://www.example.net))
  2. txt2 (txt txt (txt) )
    • txt2 (txt "txt":https://www.example.org ("txt":https://www.example.net) )
  3. txt3 (txt txt [txt)
    • txt3 (txt "txt":https://www.example.org ["txt":https://www.example.net])
  4. txt4 (txt txt [txt] )
    • txt4 (txt "txt":https://www.example.org ["txt":https://www.example.net] )
  5. txt5 (txt txt [txt).
    • txt5 (txt "txt":https://www.example.org ["txt":https://www.example.net]).
  6. txt6 (txt txt [txt
    • txt6 (txt "txt":https://www.example.org ["txt":https://www.example.net]);
  7. txt7 (txt txt [txt)
    • txt7 (txt "txt":https://www.example.org ["txt":https://www.example.net]...)
  8. txt8 (txt txt [txt]... ).
    • txt8 (txt "txt":https://www.example.org ["txt":https://www.example.net]... ).
  9. txt9 (txt txt [txt] );
    • txt9 (txt "txt":https://www.example.org ["txt":https://www.example.net] );

From the nine examples given above, only no. 2, 4, 8 and 9 render proper, usable output. The others mangles the second link one way or another.

This was observed while writing #39881.

Given the rarity of these formattings I wonder if this deserves much attention so I'll set a low priority.

Actions #1

Updated by Mischa The Evil 11 months ago

  • Description updated (diff)
Actions

Also available in: Atom PDF