discourse/app/assets/javascripts/pretty-text
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
..
addon DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
app DEV: Move pretty-text into an ember-addon format (#9689) 2020-05-07 12:37:47 -04:00
config DEV: Upgrade to Ember 3.28 2022-07-19 10:00:59 +01:00
engines/discourse-markdown DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
tests DEV: Make addons buildable on their own (#17205) 2022-06-23 22:19:54 +02:00
vendor DEV: Ember Addon needs a vendor dir 2020-05-07 15:45:35 -04:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Upgrade to Ember 3.28 2022-07-19 10:00:59 +01:00
index.js REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
jsconfig.json DEV: Add discourse/tests to jsconfig (#19031) 2022-11-15 11:33:56 +00:00
package.json Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20419) 2023-02-22 23:38:32 +01:00