Browse Source

Markdown.pl: use $g_nested_brackets for both parts of reference links

While a bit unusual, the reference id part of a reference link can
have nested '['...']' if wanted.

Therefore use $g_nested_brackets to match that side too.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
master
Kyle J. McKay 5 years ago
parent
commit
1f046587d3
  1. 4
      Markdown.pl

4
Markdown.pl

@ -1055,7 +1055,7 @@ sub _DoAnchors {
(?:\n[ ]*)? # one optional newline followed by spaces
\[
(.*?) # id = $3
($g_nested_brackets) # id = $3
\]
)
}{
@ -1214,7 +1214,7 @@ sub _DoImages {
(?:\n[ ]*)? # one optional newline followed by spaces
\[
(.*?) # id = $3
($g_nested_brackets) # id = $3
\]
)

Loading…
Cancel
Save