mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-18 01:30:32 +00:00
Merge "Document Parsoid's differing HTML for follows"
This commit is contained in:
commit
5964899b42
|
@ -1,5 +1,9 @@
|
|||
/* 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 {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,10 @@ version=2
|
|||
parsoid-compatible=wt2html
|
||||
!! 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
|
||||
!! hooks
|
||||
ref
|
||||
|
|
Loading…
Reference in a new issue