mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 08:50:07 +00:00
Run cite handler first thing in phase 3.
* Run cite handler first thing in phase 3 so that ref-content is pulled out of the main token stream. This effectively prevents unclosed/unbalanced tags within ref-tags from affecting the main stream. * No change in parser tests. * Fixes rt diffs on the following pages: 1. en:Bandaid surgeries (zero rt diffs) 2. en:Gondi bank (zero rt diffs) 3. en:Ashland, oh (1 syntactic diff) The reverted commit (78989e8) had fixed rt-diffs in 1. above, hadn't changed diffs in 2. and introduced regressions in 3. Change-Id: I6ad498d9d3711b71e7f427eea214acd10da8647b
This commit is contained in:
parent
6dcfba79fa
commit
5578953555
|
@ -28,7 +28,10 @@ function Cite ( manager, options ) {
|
|||
this.referencesRank, 'tag', 'references' );
|
||||
}
|
||||
|
||||
Cite.prototype.rank = 2.15; // after QuoteTransformer, but before PostExpandParagraphHandler
|
||||
// Cite should be the first thing to run in pahse 3 so the <ref>-</ref>
|
||||
// content tokens are pulled out of the token stream and dont pollute
|
||||
// the main token stream with any unbalanced tags/pres and the like.
|
||||
Cite.prototype.rank = 2.01; // after QuoteTransformer, but before PostExpandParagraphHandler
|
||||
Cite.prototype.referencesRank = 2.6; // after PostExpandParagraphHandler
|
||||
//Cite.prototype.rank = 2.6;
|
||||
|
||||
|
|
Loading…
Reference in a new issue