|
|
@ -1060,8 +1060,7 @@ class ParagraphSyntax extends BlockSyntax { |
|
|
|
// Reference id in brackets, and URL. |
|
|
|
// Reference id in brackets, and URL. |
|
|
|
r'''\[((?:\\\]|[^\]])+)\]:\s*(?:<(\S+)>|(\S+))\s*''' |
|
|
|
r'''\[((?:\\\]|[^\]])+)\]:\s*(?:<(\S+)>|(\S+))\s*''' |
|
|
|
// Title in double or single quotes, or parens. |
|
|
|
// Title in double or single quotes, or parens. |
|
|
|
r'''("[^"]+"|'[^']+'|\([^)]+\)|)\s*$''', |
|
|
|
r'''("[^"]+"|'[^']+'|\([^)]+\)|)\s*$''', multiLine: true); |
|
|
|
multiLine: true); |
|
|
|
|
|
|
|
final match = pattern.firstMatch(contents); |
|
|
|
final match = pattern.firstMatch(contents); |
|
|
|
if (match == null) { |
|
|
|
if (match == null) { |
|
|
|
// Not a reference link definition. |
|
|
|
// Not a reference link definition. |
|
|
|