Merge pull request #12925 from annando/issue-12842
Issue 12842: Use BBCode elements that are Markdown agnosticpull/12932/head
commit
cf0302b3c1
|
@ -283,7 +283,7 @@ class HTML
|
|||
|
||||
self::tagToBBCode($doc, 'ul', [], "[ul]", "\n[/ul]");
|
||||
self::tagToBBCode($doc, 'ol', [], "[ol]", "\n[/ol]");
|
||||
self::tagToBBCode($doc, 'li', [], "\n[*]", "");
|
||||
self::tagToBBCode($doc, 'li', [], "\n[li]", "[/li]");
|
||||
|
||||
self::tagToBBCode($doc, 'hr', [], "[hr]", "");
|
||||
|
||||
|
|
|
@ -91,18 +91,18 @@ its surprisingly good",
|
|||
'bug-12842-ul-new-lines' => [
|
||||
'expectedBBCode' => 'This is:
|
||||
[ul]
|
||||
[*]some
|
||||
[*]amazing
|
||||
[*]list
|
||||
[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' => [
|
||||
'expectedBBCode' => 'This is:
|
||||
[ol]
|
||||
[*]some
|
||||
[*]amazing
|
||||
[*]list
|
||||
[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