discourse/app/assets/javascripts/pretty-text/engines/discourse-markdown
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
..
anchor.js FIX: Generate valid heading ids (#14840) 2021-11-08 20:44:46 +02:00
bbcode-block.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
bbcode-inline.js FIX: Empty inline BBCodes were broken (#18276) 2022-09-20 09:50:22 +10:00
category-hashtag.js FEATURE: Generic hashtag autocomplete lookup and markdown cooking (#18937) 2022-11-21 08:37:06 +10:00
censored.js FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
code.js DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
custom-typographer-replacements.js Double arrow support (#20288) 2023-02-14 14:24:14 -05:00
d-wrap.js
emoji.js FIX: Watched words replacement emoji render (#19171) 2022-12-01 13:38:16 -08:00
hashtag-autocomplete.js FIX: Server-side hashtag lookups of secure categories for a user (#19377) 2022-12-09 10:34:25 +10:00
helpers.js DEV: Replace deprecated String.prototype.substr() (#16233) 2022-04-01 17:35:17 +02:00
html-img.js
image-controls.js UX: Fix alt text cancel button in dark mode (#18644) 2022-10-18 09:40:29 -07:00
mentions.js FEATURE: Enforce mention limits for chat messages (#19034) 2022-12-06 14:54:04 -03:00
newline.js FIX: possible ReDOS in markdown newline rule (#15646) 2022-01-20 22:32:01 +01:00
onebox.js
paragraph.js
quotes.js DEV: Extensively use startsWith() (#17540) 2022-07-17 20:16:39 +02:00
table.js DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
text-post-process.js
upload-protocol.js DEV: Rename secure_media to secure_uploads (#18376) 2022-09-29 09:24:33 +10:00
watched-words.js FIX: Do not replace hashtag-cooked text with WatchedWords (#19279) 2022-12-01 16:31:06 +10:00