Browse Source

Update MarkdownExtra.php

credits to @PugTechnology https://github.com/danpros/htmly/pull/565
pull/606/head
sbenve 2 years ago
committed by GitHub
parent
commit
a93bb1032b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php

+ 1
- 1
system/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php View File

@ -1898,7 +1898,7 @@ class MarkdownExtra extends \Michelf\Markdown {
# in: text ~~deleted~~ from doc
# out: text <del>deleted</del> from doc
#
$parts = preg_split('/(?<![~])(~~)(?![~])/', $text, null, PREG_SPLIT_DELIM_CAPTURE);
$parts = preg_split('/(?<![~])(~~)(?![~])/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
//don't bother if nothing to do...
if(count($parts) <= 1)


Loading…
Cancel
Save