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
e8d8801d
Commit
e8d8801d
authored
May 01, 2014
by
Emanuil Rusev
Browse files
resolve #135
parent
521803cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Parsedown.php
View file @
e8d8801d
...
...
@@ -418,7 +418,7 @@ class Parsedown
protected
function
identifyFencedCode
(
$Line
)
{
if
(
preg_match
(
'/^(['
.
$Line
[
'text'
][
0
]
.
']{3,})[ ]*(\w+)?[ ]*$/'
,
$Line
[
'text'
],
$matches
))
if
(
preg_match
(
'/^(['
.
$Line
[
'text'
][
0
]
.
']{3,})[ ]*(
[
\w
-]
+)?[ ]*$/'
,
$Line
[
'text'
],
$matches
))
{
$Element
=
array
(
'name'
=>
'code'
,
...
...
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