discourse/lib/tasks
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
..
add_topic_to_quotes.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
admin.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
annotate.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
api.rake FEATURE: Hash API keys in the database (#8438) 2019-12-12 11:45:00 +00:00
assets.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
auto_annotate_models.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
autospec.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
avatars.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
backfill.thor
categories.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
cdn.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
db.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
destroy.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
dev.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
docker.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
documentation.rake DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
emails.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
emoji.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
export.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
groups.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
hashtags.rake FEATURE: Add rake task to mark old hashtag format for rebake (#19876) 2023-01-18 10:16:05 +10:00
i18n.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
images.rake DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
import.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
incoming_emails.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
integration.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
javascript.rake DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
log.rake FIX: whoops, linting 2020-09-03 12:10:11 +01:00
maxminddb.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
plugin.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
populate.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
populate.thor DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
posts.rake DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
profile.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
qunit.rake DEV: Enable `unless` cops 2023-02-21 10:30:48 +01:00
redis.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
release_note.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
revisions.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
rspec.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
s3.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
scheduler.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
search.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
site.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
site_settings.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
smoke_test.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
svg_icons.rake DEV: Enable `unless` cops 2023-02-21 10:30:48 +01:00
tags.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
themes.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
topics.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
turbo.rake DEV: Fix bin/turbo_rspec runtime recording (#20407) 2023-02-23 07:47:11 +10:00
typepad.thor DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
uploads.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
users.rake DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00