wiki.techinc.nl/tests
C. Scott Ananian cc79898522 ParserOption/ParserOutput flag to suppress or hide the table of contents
There are two related issues here: first, when parsing non-wikitext
pages for side effects (categories, etc) we want to ensure that any
spurious `===` or `<h2>` on the page don't create nonsense "sections".
We introduce a ParserOption to suppress the ToC in this case; a
follow-up patch will set this parser option from the correct path in
CodeContentHandler and its subclasses. [T307691]

Second, modern skins can generate the ToC on-the-fly outside the
content area, and need to be able to regenerate the ToC from API
output when the page is edited.  A ParserOutput flag is added to
mirror the $enoughToc variable from the parser to indicate whether
or not the ToC should be generated and/or updated after edit.
(See I6cf76c870124c162dc1bcbc2f7e9ca0c5fdcd10e for parallel code
to echo this value in ApiParse.)

Bug: T294950
Bug: T307691
Change-Id: I35e199cca40c0e4359ac493e5806dcf4ae49321c
2022-07-21 15:29:11 -04:00
..
api-testing phpunit tests for ParsoidHandler::html2wt 2022-07-18 13:51:49 +02:00
common REST: introduce getPrivateRouteUrl 2022-07-14 13:12:35 +00:00
parser ParserOption/ParserOutput flag to suppress or hide the table of contents 2022-07-21 15:29:11 -04:00
phpunit Tests: remove unneeded helper methods that just return a mock with no 2022-07-20 23:40:19 +00:00
qunit tests: Flatten /tests/qunit for jquery.* module tests as well 2022-07-20 01:06:31 -05:00
selenium wdio-mediawiki: Release 2.1.0 2022-05-19 13:45:00 +02:00
.htaccess