Changes to the use statements done automatically via script
Addition of missing use statement done manually
Change-Id: Iede38f051529229fce7660dce7d0dba64724ee8a
Skip empty wikilink `[[]]` and reverse pipe trick `[[|foo]]` where valid
and correct title cannot be generated respectively.
Bug: T368166
Change-Id: I5df409c8aa104d93a62cd5c0dbd671d598b7c79e
* Use wikipage.content hook event so that links are also applied on
content added through JS tools like live preview, real time preview,
DiscussionTools, etc. (Consider checking the diff with whitespaces
ignored.)
* Preserve fragments (anchors) in links by using mw.Title getUrl().
Bug: T368166
Change-Id: Ib3a4d03abf7401c39bc3261ca2056cce482edb13
Causing a console error on a COBOL code block on
https://en.wikipedia.org/wiki/Visual_FoxPro.
The optional chaining operator should ideally be used here, too bad
it's ES2020.
Bug: T376958
Change-Id: Id4c604e4897d83cb51218e785db9f553b3f32fda
Make the wrapper div for code block create a block formatting
context. This changes how floated content is laid out: previously
the wrapper was taking 100% width and tried to wrap text around the
floated content, now its width is limited by the width of floated
content. This way absolutely positioned elements inside the code
block (like the copy buttons) won't overlap the floated content.
We've had this problem before when adding line numbers (T272853),
and the workaround we used there won't work for the copy buttons.
It also lets us remove the background-color override, previously
needed to avoid it leaking outside the code block (T126010).
Bug: T40932
Change-Id: I7f51ea78d7fcf07358c6ee45275b2bae2e1cbeb8
This includes some changes to the colors in light mode to make them
match Codex tokens.
Bug: T365926
Change-Id: Ifa5d762bffa3c4ebdcfa451cc4a9965cd7b1b064
Update the CSS generation script to generate styles for both light and
dark modes. The Pygments style 'default' is used for light mode, as
before, and 'monokai' for dark mode.
Bug: T365926
Change-Id: I0cc1f9a10d4ff8e0c279a12cacbb1c300225328f
Verify that running Pygmentize::fetchGeneratedCss() (which gets invoked
from the updateCss.php maintenance script) gives CSS that matches the
generated file pygments.generated.css.
Change-Id: I454f287cb461b596178ee47c44634e2e127fe576
Prepend '//' to relative URLs to turn them to real new (root)
addresses instead of relative paths in current domain
Bug: T368166
Follow-up: I999937c1f6303ecc64adb6285e73a9ce10f67bd8
Change-Id: I2cf901c7b0454517dc93ea8113dcf69832584c08