From e4e8f8e07695a9f4cb67d074394832bc1e31ca55 Mon Sep 17 00:00:00 2001 From: Isabelle Hurbain-Palatin Date: Thu, 14 Sep 2023 17:46:38 +0200 Subject: [PATCH] Set hasWikitextInput flag to false The content of the SyntaxHighlight extension is not wikitext and annotations should be stripped from it before rendering. Bug: T341009 Depends-On: I4e9a7a8bec3cb9532ef8a729fd2c6c4acca5d8a0 Change-Id: Ibada54d517830b1112b59513b090dc4bbdc7c917 --- includes/ParsoidExt.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/ParsoidExt.php b/includes/ParsoidExt.php index bef486c2..3185db1b 100644 --- a/includes/ParsoidExt.php +++ b/includes/ParsoidExt.php @@ -20,7 +20,8 @@ class ParsoidExt implements ExtensionModule { // Strip nowiki markers from #tag parser-function arguments. // This will be used to resolve T299103. // This is primarily a b/c flag in Parsoid. - 'stripNowiki' => true + 'stripNowiki' => true, + 'hasWikitextInput' => false, ] ], [ @@ -30,7 +31,8 @@ class ParsoidExt implements ExtensionModule { // Strip nowiki markers from #tag parser-function arguments. // This will be used to resolve T299103. // This is primarily a b/c flag in Parsoid. - 'stripNowiki' => true + 'stripNowiki' => true, + 'hasWikitextInput' => false, ] ] ]