mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
improve consistency
This commit is contained in:
parent
86a27b48bc
commit
e68a458105
@ -89,7 +89,7 @@ class Parsedown
|
|||||||
'#' => array('Header'),
|
'#' => array('Header'),
|
||||||
'*' => array('Rule', 'List'),
|
'*' => array('Rule', 'List'),
|
||||||
'+' => array('List'),
|
'+' => array('List'),
|
||||||
'-' => array('Setext', 'Table', 'Rule', 'List'),
|
'-' => array('SetextHeader', 'Table', 'Rule', 'List'),
|
||||||
'0' => array('List'),
|
'0' => array('List'),
|
||||||
'1' => array('List'),
|
'1' => array('List'),
|
||||||
'2' => array('List'),
|
'2' => array('List'),
|
||||||
@ -102,7 +102,7 @@ class Parsedown
|
|||||||
'9' => array('List'),
|
'9' => array('List'),
|
||||||
':' => array('Table'),
|
':' => array('Table'),
|
||||||
'<' => array('Comment', 'Markup'),
|
'<' => array('Comment', 'Markup'),
|
||||||
'=' => array('Setext'),
|
'=' => array('SetextHeader'),
|
||||||
'>' => array('Quote'),
|
'>' => array('Quote'),
|
||||||
'_' => array('Rule'),
|
'_' => array('Rule'),
|
||||||
'`' => array('FencedCode'),
|
'`' => array('FencedCode'),
|
||||||
@ -648,7 +648,7 @@ class Parsedown
|
|||||||
#
|
#
|
||||||
# Setext
|
# Setext
|
||||||
|
|
||||||
protected function blockSetext($Line, array $Block = null)
|
protected function blockSetextHeader($Line, array $Block = null)
|
||||||
{
|
{
|
||||||
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
||||||
{
|
{
|
||||||
@ -665,7 +665,7 @@ class Parsedown
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Markup
|
# Markup
|
||||||
|
|
||||||
protected function blockMarkup($Line)
|
protected function blockMarkup($Line)
|
||||||
{
|
{
|
||||||
if ($this->markupEscaped)
|
if ($this->markupEscaped)
|
||||||
|
Loading…
Reference in New Issue
Block a user