fix: square brackets should be correctly rendered in tab names

Removing some of the legacy string replace code that is used to get around wikitext formatting.
It is not needed anymore.

Fixes: #158
This commit is contained in:
alistair3149 2024-07-02 22:03:36 -04:00
parent 90fa41594a
commit 3bacdb7c87
No known key found for this signature in database

View file

@ -86,9 +86,6 @@ class Tabber {
return sprintf( '[%s]', $tab );
}
$htmlTabs = preg_replace( '/\\\n/', '', $htmlTabs );
$htmlTabs = preg_replace( '/\\\*/', '', $htmlTabs );
$htmlTabs = str_replace( [ '"[', ']"' ], [ '[', ']' ], $htmlTabs );
return '<div class="tabber">' .
'<header class="tabber__header"></header>' .