Debian Codegraph @

resources/src/mediawiki.skinning/content.parsoid.less

raw
1 /**
2 * Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
3 */
4
5 /*
6 * Auto-numbered external links
7 * Parsoid renders those as link without content, and lets CSS do the
8 * counting. This way the counting style can be customized, and counts update
9 * automatically when content is modified.
10 */
11 .mw-parser-output {
12 counter-reset: mw-numbered-ext-link;
13
14 a[ rel~='mw:ExtLink' ]:empty::after {
15 content: '[' counter( mw-numbered-ext-link ) ']';
16 counter-increment: mw-numbered-ext-link;
17 }
18 }