Merge pull request #12925 from annando/issue-12842

Issue 12842: Use BBCode elements that are Markdown agnostic
pull/12932/head
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, 'ol', [], "[ol]", "\n[/ol]");
self::tagToBBCode($doc, 'li', [], "\n[*]", "");
self::tagToBBCode($doc, 'li', [], "\n[li]", "[/li]");
self::tagToBBCode($doc, 'hr', [], "[hr]", "");

View File

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