mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
Fix list bug
This commit is contained in:
parent
4b2ab3af73
commit
09400dcd09
|
|
@ -354,7 +354,7 @@ class Markdown
|
||||||
return $block;
|
return $block;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function blockFencedCodeContinue(array $lineArray, array $block) : array
|
protected static function blockFencedCodeContinue(array $lineArray, array $block) /* : ?array */
|
||||||
{
|
{
|
||||||
if (isset($block['complete'])) {
|
if (isset($block['complete'])) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -435,9 +435,10 @@ class Markdown
|
||||||
if($name === 'ol') {
|
if($name === 'ol') {
|
||||||
$listStart = stristr($matches[0], '.', true);
|
$listStart = stristr($matches[0], '.', true);
|
||||||
|
|
||||||
|
/*
|
||||||
if($listStart !== '1') {
|
if($listStart !== '1') {
|
||||||
$block['element']['attributes'] = ['start' => $listStart];
|
$block['element']['attributes'] = ['start' => $listStart];
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
$block['li'] = [
|
$block['li'] = [
|
||||||
|
|
@ -1082,7 +1083,7 @@ class Markdown
|
||||||
|
|
||||||
protected static function inlineUrl(array $excerpt) /* : ?array */
|
protected static function inlineUrl(array $excerpt) /* : ?array */
|
||||||
{
|
{
|
||||||
if (self::$urlsLinked !== true || !isset($excerpt['text'][2]) || $excerpt['text'][2] !== '/') {
|
if (!isset($excerpt['text'][2]) || $excerpt['text'][2] !== '/') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user