This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit
Penar Musaraj c052df412a
DEV: Add support for aliases in HighlightJS languages (#20380)
We were only supporting the main name of each HighlightJS language. So, by default, you could not use `js` or `jsx` to highlight Javascript, given they are aliases for `javascript`.

This PR adds a list of aliases as a constant to core (built via a rake task), and then checks against the `highlighted_languages` site settings plus the list of aliases when processing a code block.
2023-02-23 15:06:06 -05:00
..
controllers DEV: Deprecate create-store test helper (#19021) 2022-11-16 10:54:46 +01:00
ember DEV: Support theme/plugin overrides of colocated component templates (#19237) 2022-11-30 14:14:38 +00:00
lib DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
mixins DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
models SECURITY: Hide PM count for tags by default (#20061) 2023-01-31 12:08:23 +08:00
routes DEV: Add tests for review-index route (#18415) 2022-10-05 12:39:35 +08:00
services FIX: Don't spam presence requests when getting 429 (#20084) 2023-01-31 09:49:23 +01:00
utils DEV: Add native class shims for on/observes decorators 2023-02-22 09:32:48 +00:00
localization-test.js FIX: Overriding text with admin_js.* keys didn't work (#18281) 2022-09-20 10:47:57 +10:00