aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Parsedown.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-31 15:44:11 +0200
committerThomas Lange <code@nerdmind.de>2017-05-31 15:44:11 +0200
commit816959215dff92ee0af295be6d801b4cfa150269 (patch)
tree30cb09dbdeadce4524f380064a778006d890a8ca /core/namespace/Parsedown.php
parentee982c2ee760d6aeafedcb4343d1bf259ca1fe87 (diff)
downloadblog-816959215dff92ee0af295be6d801b4cfa150269.tar.gz
blog-816959215dff92ee0af295be6d801b4cfa150269.tar.xz
blog-816959215dff92ee0af295be6d801b4cfa150269.zip
Two changes have been made in this commit:
+ Update [core]: Parsedown has been updated to version 1.6.2. + Optimization [admin template]: The markdown buttons have been placed directly above the content editor. + Optimization [admin template]: The content editor has been visually embellished (padding from the parent was removed).
Diffstat (limited to 'core/namespace/Parsedown.php')
-rw-r--r--core/namespace/Parsedown.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/namespace/Parsedown.php b/core/namespace/Parsedown.php
index 610658b..f5dd0fa 100644
--- a/core/namespace/Parsedown.php
+++ b/core/namespace/Parsedown.php
@@ -448,7 +448,7 @@ class Parsedown
return $Block;
}
- $Block['element']['text']['text'] .= "\n".$Line['body'];;
+ $Block['element']['text']['text'] .= "\n".$Line['body'];
return $Block;
}
@@ -1204,7 +1204,7 @@ class Parsedown
$remainder = $Excerpt['text'];
- if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches))
+ if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches))
{
$Element['text'] = $matches[1];
@@ -1217,7 +1217,7 @@ class Parsedown
return;
}
- if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/', $remainder, $matches))
+ if (preg_match('/^[(]\s*+((?:[^ ()]++|[(][^ )]+[)])++)(?:[ ]+("[^"]*"|\'[^\']*\'))?\s*[)]/', $remainder, $matches))
{
$Element['attributes']['href'] = $matches[1];
@@ -1539,10 +1539,10 @@ class Parsedown
'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
'i', 'rp', 'del', 'code', 'strike', 'marquee',
'q', 'rt', 'ins', 'font', 'strong',
- 's', 'tt', 'sub', 'mark',
- 'u', 'xm', 'sup', 'nobr',
- 'var', 'ruby',
- 'wbr', 'span',
- 'time',
+ 's', 'tt', 'kbd', 'mark',
+ 'u', 'xm', 'sub', 'nobr',
+ 'sup', 'ruby',
+ 'var', 'span',
+ 'wbr', 'time',
);
}