Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
parsedown
Commits
400c8f7d
Commit
400c8f7d
authored
Nov 08, 2013
by
Emanuil Rusev
Browse files
simplify regex for inline link in attempt to resolve #23
parent
379cbf34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Parsedown.php
View file @
400c8f7d
...
...
@@ -560,7 +560,7 @@ class Parsedown
# Inline Link / Image
if
(
strpos
(
$text
,
']('
)
!==
FALSE
and
preg_match_all
(
'/(!?)(\[((?:[^
][]+
|(?2))*)\])\((.*?)\)/'
,
$text
,
$matches
,
PREG_SET_ORDER
))
# inline
if
(
strpos
(
$text
,
']('
)
!==
FALSE
and
preg_match_all
(
'/(!?)(\[((?:[^
\[\]]
|(?2))*)\])\((.*?)\)/'
,
$text
,
$matches
,
PREG_SET_ORDER
))
# inline
{
foreach
(
$matches
as
$matches
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment