1
0
Fork 0

Merge pull request #12925 from annando/issue-12842

Issue 12842: Use BBCode elements that are Markdown agnostic
This commit is contained in:
Hypolite Petovan 2023-03-22 09:14:01 -04:00 committed by GitHub
commit cf0302b3c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -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]", "");

View file

@ -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>',
], ],