Merge "Document Parsoid's differing HTML for follows"

This commit is contained in:
jenkins-bot 2023-03-14 20:45:13 +00:00 committed by Gerrit Code Review
commit 5964899b42
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
/* CSS for Parsoid Cite extension */ /* CSS for Parsoid Cite extension */
/* Parsoid HTML emits <sup> tags for follows uses even though there is
* no visible output for follows. Parsoid does this to ensure it can
* roundtrip back the source wikitext after edits.
* However, since this HTML should not be rendered, we use CSS to hide it */
.mw-ref-follow { .mw-ref-follow {
display: none; display: none;
} }

View file

@ -3,6 +3,10 @@ version=2
parsoid-compatible=wt2html parsoid-compatible=wt2html
!! end !! end
# NOTE about Parsoid HTML for cite tests with follows.
# Parsoid HTML has <sup>s for follows because it needs to be able to roundtrip it back.
# This output is hidden from read views via CSS in ext.cite.style.css.
# Force the test runner to ensure the extension is loaded # Force the test runner to ensure the extension is loaded
!! hooks !! hooks
ref ref