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. |
||
|---|---|---|
| .. | ||
| emoji | ||
| engines | ||
| allow-lister.js | ||
| censored-words.js | ||
| emoji.js | ||
| guid.js | ||
| highlightjs-aliases.js | ||
| inline-oneboxer.js | ||
| mentions.js | ||
| oneboxer-cache.js | ||
| oneboxer.js | ||
| pretty-text.js | ||
| sanitizer.js | ||
| upload-short-url.js | ||