diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2022-07-27 08:24:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2022-07-27 08:24:37 +0000 |
commit | 8df1a4c1351d29a9f6241de0c3162a989bac18bd (patch) | |
tree | 8f41051909a8bb5592076f1c5dbbebf23d172768 /includes/content | |
parent | 23d3c244b06fef5b75dbfdb621b39bbbcc657f2b (diff) | |
parent | ccd0ee2f3975155277dce85eea765d69ca584212 (diff) | |
download | mediawikicore-8df1a4c1351d29a9f6241de0c3162a989bac18bd.tar.gz mediawikicore-8df1a4c1351d29a9f6241de0c3162a989bac18bd.zip |
Merge "Use ParserOptions::setSuppressTOC() for Javascript content"
Diffstat (limited to 'includes/content')
-rw-r--r-- | includes/content/TextContentHandler.php | 4 |
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(). |