discourse/app
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
..
assets DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
controllers DEV: Apply form template to categories (#20337) 2023-02-23 11:18:14 -08:00
helpers DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
jobs DEV: Enable unless cops 2023-02-21 10:30:48 +01:00
mailers DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
models DEV: Apply form template to categories (#20337) 2023-02-23 11:18:14 -08:00
serializers DEV: Apply form template to categories (#20337) 2023-02-23 11:18:14 -08:00
services DEV: configurable public sidebar sections (#20303) 2023-02-22 08:55:44 +11:00
views SECURITY: Show only visible tags in metadata 2023-02-23 17:22:20 +01:00