Commit graph

1216 commits

Author SHA1 Message Date
Translation updater bot 02b26d5403
Localisation updates from https://translatewiki.net.
Change-Id: Ie5738d109df129225447c5491d0f36982a220f5a
2024-06-18 08:46:02 +02:00
libraryupgrader 6b79ba546b build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: Ied5ba30d09099244d1cfc54f71b718976c79ca2a
2024-06-16 02:43:51 +00:00
Translation updater bot 41a0dcda32 Localisation updates from https://translatewiki.net.
Change-Id: I433fd57714d1d0d902cbaf1b96c6ae9affeadeb4
2024-06-04 08:27:40 +02:00
Translation updater bot fa68f8459e Localisation updates from https://translatewiki.net.
Change-Id: Id47369923e78a4a8fa0cb3611e7ece15f256b154
2024-05-21 08:14:18 +02:00
Translation updater bot 1170e8f58f Localisation updates from https://translatewiki.net.
Change-Id: I00ccbee6dee58cba395694f107e729a726fee204
2024-02-27 07:24:25 +01:00
Translation updater bot 79787a3234 Localisation updates from https://translatewiki.net.
Change-Id: I10e7cbec34680fbf670d9bb4157f5122e745f7bf
2024-02-20 07:26:12 +01:00
Translation updater bot a6c5a59406 Localisation updates from https://translatewiki.net.
Change-Id: Id2d43c6e5444006ed32fea7b3c8cfb33a802aa44
2024-02-13 07:14:39 +01:00
libraryupgrader 7a95355625 build: Updating npm dependencies
* debug: 3.2.6, 4.3.4 → 3.2.7, 4.3.4
  * https://github.com/advisories/GHSA-gxpj-cx7g-858c
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* postcss: 8.4.12 → 8.4.35
  * https://github.com/advisories/GHSA-7fh5-64p2-3v2j
* semver: 5.7.1, 6.3.0, 7.3.5 → 5.7.2, 6.3.1, 7.6.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I69fcc1a41e0f904394a5b1fec17c33f8f31cf24a
2024-02-09 21:53:32 +00:00
Translation updater bot 28ed769b52 Localisation updates from https://translatewiki.net.
Change-Id: Ib56a3177bcc71b885c9b10110f9eb186f16cc6d0
2024-02-06 07:42:17 +01:00
Translation updater bot 45642754b5 Localisation updates from https://translatewiki.net.
Change-Id: I9c2c0466af5acc4a22375b4018314b36a00fa4d1
2023-12-28 08:20:40 +01:00
Translation updater bot 5566c69f7d Localisation updates from https://translatewiki.net.
Change-Id: Ie764c634279d6eb1a3a5970e159f2155bfc59d93
2023-12-21 09:05:54 +01:00
Translation updater bot ded412bd45 Localisation updates from https://translatewiki.net.
Change-Id: I14ba06631f18d455b0c8eec08b8b70d0a109db25
2023-11-30 08:46:56 +01:00
Translation updater bot d0cf937d6a Localisation updates from https://translatewiki.net.
Change-Id: Ia125f22ed7517957aa50db816de754be090973c2
2023-09-28 08:29:56 +02:00
Translation updater bot bae3b4951d Localisation updates from https://translatewiki.net.
Change-Id: I96897b63cab2a47fc112860db7774cb32cfc6dad
2023-08-31 08:34:30 +02:00
Translation updater bot 33edb9d999 Localisation updates from https://translatewiki.net.
Change-Id: I104c314fd71f91bb56223209d3ced256f2edd3c4
2023-08-10 08:17:40 +02:00
Translation updater bot 535d3d79f3 Localisation updates from https://translatewiki.net.
Change-Id: Ice2d088a121a010298e2993ed55ab10b605175b4
2023-07-27 09:50:35 +02:00
Translation updater bot 7c7786dbd5 Localisation updates from https://translatewiki.net.
Change-Id: I7df9ba79166513acb846c2e2e4670fe7548609a7
2023-06-29 08:14:53 +02:00
Translation updater bot 4dc845b8a7 Localisation updates from https://translatewiki.net.
Change-Id: I840871422e5e1b715a6fdbf025abaceb86480a8e
2023-06-15 08:34:44 +02:00
Translation updater bot cdd1658199 Localisation updates from https://translatewiki.net.
Change-Id: I3311d7db50fd89b464d741715a5abb91d32ac22f
2023-05-25 07:42:04 +02:00
Translation updater bot a8d5718be9 Localisation updates from https://translatewiki.net.
Change-Id: Ic9e3a0f1a4e138b576c15102c9c5def504ad6e35
2023-04-06 08:21:33 +02:00
James D. Forrester ed17954ea9 build: Update MediaWiki requirement to 1.40.0
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I3261da8948b32665571f8b93e76a4ca4bf0f57e0
2023-03-13 23:38:25 -04:00
libraryupgrader f02a3a2821 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: If734e97b623b72d9dc63f6b1e054467c91ca82f2
2023-03-12 11:40:26 +00:00
Ed Sanders e39f530bfb Document the linelinks attribute and load JS when used
Change-Id: Iaf6e2ef58e85ac92e5fcf9dd3449baae927feb9c
2023-03-09 12:48:55 +00:00
Translation updater bot 510e00d19b Localisation updates from https://translatewiki.net.
Change-Id: I0739dc40be8dbfbdd33c6858e8698ccbc6f264f4
2023-02-27 08:28:20 +01:00
C. Scott Ananian 2f4f3c962f parserTests.txt: Add nohtml option to accomodate test runner change
This makes the parserTests compatible with change
I61a67a0e6928463e3872be9a42ff6992c6754662 in core.

Change-Id: I5c22f456a3ae5ea25b59c4246d68965099c465cc
2023-02-09 23:36:00 -05:00
Translation updater bot 02c514fd14 Localisation updates from https://translatewiki.net.
Change-Id: I78c21ef61a3fde83ed2d26c49566a54eea8ee24c
2023-01-03 08:21:36 +01:00
Translation updater bot 91f7fc1b9b Localisation updates from https://translatewiki.net.
Change-Id: I479501f404c825d80ba8a7f74c723e43cd73bc10
2022-12-23 09:08:21 +01:00
Translation updater bot 881fc7d083 Localisation updates from https://translatewiki.net.
Change-Id: I50094fa10bbc38f7440b092c7934223bd0e95c0f
2022-12-21 09:18:07 +01:00
jenkins-bot 14cb8415da Merge "fetchLexers: Pass '--json' to Pygmentize" 2022-12-21 01:00:30 +00:00
Ori Livneh 508e926b5d fetchLexers: Pass '--json' to Pygmentize
Use the '--json' flag to get Pygments to output its list of supported
lexers in a machine-readable format. Support for this flag was added (at
our request) to Pygments and included in the 2.11 release[1].

Tested by running updateLexerList.php and confirming empty diff.

  [1]: https://github.com/pygments/pygments/issues/1437

Change-Id: I0f1d7fceca9034e6034bafa6a8dd312b99d379d1
2022-12-20 23:18:55 +00:00
jenkins-bot 4fead6c331 Merge "Fix lexer list parsing on Windows" 2022-12-20 22:40:50 +00:00
libraryupgrader f90b6bd647 build: Updating qs to 6.11.0
* https://github.com/advisories/GHSA-hrpp-h998-j3pp

Change-Id: I2b126cc32af89269b2ac5da8de13448f29db5cb1
2022-12-07 03:45:02 +00:00
jenkins-bot 362ca84426 Merge "Make the code size limit for highlighting configurable" 2022-11-26 12:54:41 +00:00
Translation updater bot 891e291741 Localisation updates from https://translatewiki.net.
Change-Id: I324ccdcd5b9ffb17b75f0c46e98e6a09c738d13c
2022-11-24 08:18:18 +01:00
Ryan Schmidt 2ae82c7fb7 Fix lexer list parsing on Windows
When using a non-bundled Pygments (which is required on Windows, as the
bundled version is an ELF binary), we call into the Pygments executable
to generate the list of supported languages (lexers). This list seems to
occasionally include carraige returns, causing some languages to not be
processed correctly. Trim those CRs out so the language list is
accurate.

Change-Id: If8b1f145dd10e2c4707d6d32927e85d1d2459f15
2022-11-20 22:46:55 -07:00
libraryupgrader 27ca45e8cb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 39.0.0 → 40.0.1

npm:
* stylelint-config-wikimedia: 0.13.0 → 0.13.1

Change-Id: Ifd15d37271ad474c948e9187b7b6bccc1f336489
2022-11-16 23:22:01 +00:00
libraryupgrader b4e5ef0a41 build: Updating grunt-stylelint to 0.18.0
Change-Id: I4c52e2c0121f617c04e32a04b3e7bec785606e8f
2022-11-13 09:48:07 +00:00
jenkins-bot 1351b2e427 Merge "Count only real highlighting as expensive parser tag hooks" 2022-11-11 09:18:52 +00:00
Translation updater bot 9ccc4102d2 Localisation updates from https://translatewiki.net.
Change-Id: I5202cfa8a0d62cfd7abab552f59afaeda1134118
2022-11-08 08:21:36 +01:00
Translation updater bot 04fdbe067a Localisation updates from https://translatewiki.net.
Change-Id: I76f62f6250ed602b845ea8a1c1ca6df5aed1acb0
2022-11-07 08:35:53 +01:00
Translation updater bot 52771e543a Localisation updates from https://translatewiki.net.
Change-Id: I9532f479758354b1b62a9e4a1034db9ffaa2aab3
2022-11-04 09:04:03 +01:00
alex4401 90ee9a9774
Make the code size limit for highlighting configurable
Replacing the HIGHLIGHT_MAX_LINES and HIGHLIGHT_MAX_BYTES constants with $wgSyntaxHighlightMaxLines and $wgSyntaxHighlightMaxBytes respectively, so sysadmins can adjust the limits to their needs if performance is not of their concern.

Bug: T322293
Bug: T104109
Change-Id: I80768d3cb45ac01c004fc812832878c83ca4ecdb
2022-11-03 12:04:35 +01:00
Ryan Schmidt d7a6038211 Fix pygments on Windows
Python on Windows requires the SystemRoot environment variable in order
to initialize its internal RNG, so make sure that is passed along to the
subprocess.

Bug: T300223
Change-Id: I170ce627a3f00c023f4b1f11613f4fe2cb17bd31
2022-11-02 19:02:59 -07:00
Reedy d94fec0141 Remove global class alias
Change-Id: I334a6ce9040385b11f30bb5d25e45bb124e0acce
2022-10-31 23:07:39 +00:00
thiemowmde 0b13847937 Avoid dirty diffs when editing code blocks with line numbers
Steps to reproduce:
* Make a wikitext page with <syntaxhighlight line="sure">…</…>.
* Edit with VisualEditor and make an unrelated change to the content.
* Save.
* Before the attribute was always replaced with line="1".
* With this patch the old value stays untouched.

Change-Id: I433a206905c1a0a1bc06ef8b4037f6db9d935810
2022-10-26 12:59:32 +00:00
libraryupgrader fb95fb983b build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I30f052b224f9a1c9c5845ba5f4f0e2d46eeab4cb
2022-10-21 20:13:08 +00:00
Translation updater bot 8f94c63f80 Localisation updates from https://translatewiki.net.
Change-Id: Ib3ddbc394df160c618cc9ca48cbe127f7eb6667e
2022-10-19 08:20:55 +02:00
Translation updater bot 75c8d150ce Localisation updates from https://translatewiki.net.
Change-Id: Ie5fed80fdf36c5c6aede62864da8e3fb41a022d3
2022-10-10 10:21:22 +02:00
Umherirrender fe6415836d Count only real highlighting as expensive parser tag hooks
Skip the expensive check,
for example when no highlighting is wanted because there is no lexer

Also all validation of the tag is now processed and
invalid tags also not counted.

Bug: T316858
Change-Id: Ifad9a9a14fae92463c345fb12defb41f14c2e1f3
2022-10-09 18:22:02 +02:00
libraryupgrader 6ca610c484 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Ibd65a9af17ac74a26b2ca065d5b155d8d5151645
2022-10-09 10:57:27 +00:00