From 3bacdb7c87b1076bd7e036c929ff91ee6edc2a86 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Tue, 2 Jul 2024 22:03:36 -0400 Subject: [PATCH] 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 --- includes/Tabber.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/Tabber.php b/includes/Tabber.php index 026d9fb..24aad21 100644 --- a/includes/Tabber.php +++ b/includes/Tabber.php @@ -86,9 +86,6 @@ class Tabber { return sprintf( '[%s]', $tab ); } - $htmlTabs = preg_replace( '/\\\n/', '', $htmlTabs ); - $htmlTabs = preg_replace( '/\\\*/', '', $htmlTabs ); - $htmlTabs = str_replace( [ '"[', ']"' ], [ '[', ']' ], $htmlTabs ); return '
' . '
' .