Update MarkdownExtra.php

Changed the value from 0 to -1
This commit is contained in:
David E Vasquez 2022-06-27 10:28:50 -06:00
commit d5db937c92

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, 0, PREG_SPLIT_DELIM_CAPTURE);
$parts = preg_split('/(?<![~])(~~)(?![~])/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
//don't bother if nothing to do...
if(count($parts) <= 1)