aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2022-07-27 08:24:37 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2022-07-27 08:24:37 +0000
commit8df1a4c1351d29a9f6241de0c3162a989bac18bd (patch)
tree8f41051909a8bb5592076f1c5dbbebf23d172768 /includes/content
parent23d3c244b06fef5b75dbfdb621b39bbbcc657f2b (diff)
parentccd0ee2f3975155277dce85eea765d69ca584212 (diff)
downloadmediawikicore-8df1a4c1351d29a9f6241de0c3162a989bac18bd.tar.gz
mediawikicore-8df1a4c1351d29a9f6241de0c3162a989bac18bd.zip
Merge "Use ParserOptions::setSuppressTOC() for Javascript content"
Diffstat (limited to 'includes/content')
-rw-r--r--includes/content/TextContentHandler.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/content/TextContentHandler.php b/includes/content/TextContentHandler.php
index cc0bfbdf821d..d5f6ee4649bd 100644
--- a/includes/content/TextContentHandler.php
+++ b/includes/content/TextContentHandler.php
@@ -197,7 +197,9 @@ class TextContentHandler extends ContentHandler {
* provided by getHtml().
*
* For content models listed in $wgTextModelsToParse, this method will call the MediaWiki
- * wikitext parser on the text to extract any (wikitext) links, magic words, etc.
+ * wikitext parser on the text to extract any (wikitext) links, magic words, etc.,
+ * but note that the Table of Contents will *not* be generated
+ * (feature added by T307691, but should be refactored: T313455).
*
* Subclasses may override this to provide custom content processing.
* For custom HTML generation alone, it is sufficient to override getHtml().