Merge pull request #12925 from annando/issue-12842
Issue 12842: Use BBCode elements that are Markdown agnostic
This commit is contained in:
commit
cf0302b3c1
|
@ -283,7 +283,7 @@ class HTML
|
||||||
|
|
||||||
self::tagToBBCode($doc, 'ul', [], "[ul]", "\n[/ul]");
|
self::tagToBBCode($doc, 'ul', [], "[ul]", "\n[/ul]");
|
||||||
self::tagToBBCode($doc, 'ol', [], "[ol]", "\n[/ol]");
|
self::tagToBBCode($doc, 'ol', [], "[ol]", "\n[/ol]");
|
||||||
self::tagToBBCode($doc, 'li', [], "\n[*]", "");
|
self::tagToBBCode($doc, 'li', [], "\n[li]", "[/li]");
|
||||||
|
|
||||||
self::tagToBBCode($doc, 'hr', [], "[hr]", "");
|
self::tagToBBCode($doc, 'hr', [], "[hr]", "");
|
||||||
|
|
||||||
|
|
|
@ -91,18 +91,18 @@ its surprisingly good",
|
||||||
'bug-12842-ul-new-lines' => [
|
'bug-12842-ul-new-lines' => [
|
||||||
'expectedBBCode' => 'This is:
|
'expectedBBCode' => 'This is:
|
||||||
[ul]
|
[ul]
|
||||||
[*]some
|
[li]some[/li]
|
||||||
[*]amazing
|
[li]amazing[/li]
|
||||||
[*]list
|
[li]list[/li]
|
||||||
[/ul]',
|
[/ul]',
|
||||||
'html'=> '<p>This is:</p><ul><li>some</li><li>amazing</li><li>list</li></ul>',
|
'html'=> '<p>This is:</p><ul><li>some</li><li>amazing</li><li>list</li></ul>',
|
||||||
],
|
],
|
||||||
'bug-12842-ol-new-lines' => [
|
'bug-12842-ol-new-lines' => [
|
||||||
'expectedBBCode' => 'This is:
|
'expectedBBCode' => 'This is:
|
||||||
[ol]
|
[ol]
|
||||||
[*]some
|
[li]some[/li]
|
||||||
[*]amazing
|
[li]amazing[/li]
|
||||||
[*]list
|
[li]list[/li]
|
||||||
[/ol]',
|
[/ol]',
|
||||||
'html'=> '<p>This is:</p><ol><li>some</li><li>amazing</li><li>list</li></ol>',
|
'html'=> '<p>This is:</p><ol><li>some</li><li>amazing</li><li>list</li></ol>',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user