mediawiki-extensions-Cite/modules
Thiemo Kreuz 85ad4513ba Fix highlighting code destroying backlinks on unnamed <ref>s
There are multiple formats for these IDs:

cite_ref-1, cite_ref-2, and so on for anonymous <ref>s without a name.

cite_ref-name_1-0 for named references, where "name" is the custom name,
and "_1" is the sequential number for the reference (same number as above).
The final "-0" is counting the usages. If a named <ref> is only used once,
there is no cite_ref-name_1-1 anywhere on the page.

The later was already checked by the code. But we forgot about unnamed
references! As a consequence IDs like the cite_ref-1 above got misdetected
as reused references.

This patch tries hard to extract code into named functions, so it becomes
much more clear what they do, and why.

Bug: T215317
Change-Id: Iedb5b0c3dffae19bad7df9a43ed2d4512b3921ec
2019-02-20 15:40:46 +00:00
..
ve-cite Merge "Remove generated cite-dialogs stubs" 2019-02-20 01:41:54 +00:00
ext.cite.a11y.css Add stylelint and make required style fixes 2016-05-17 18:21:30 +01:00
ext.cite.a11y.js Improve a11y support on backlinks 2018-11-26 11:36:26 +01:00
ext.cite.highlighting.css Make arrows/carets links whenever we know where the user came from 2018-11-19 16:27:59 +00:00
ext.cite.highlighting.js Fix highlighting code destroying backlinks on unnamed <ref>s 2019-02-20 15:40:46 +00:00
ext.cite.print.css Move '@media print' rules to separate file 2015-06-04 22:22:16 +00:00
ext.cite.style.css build: Update 'stylelint-config-wikimedia' to v0.5.0 and make pass 2018-12-10 02:59:11 -08:00
ext.cite.style.fa.css Support directionality for reference 2018-05-02 17:27:32 +02:00
ext.cite.styles.css Make references not inherit bold or italic styling. 2018-08-01 14:57:37 +02:00
ext.cite.styles.minerva.less Run stylelint also for less file 2017-07-18 19:44:31 +00:00