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
admin.rake
annotate.rake
api.rake
assets.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
auto_annotate_models.rake
autospec.rake
avatars.rake
backfill.thor
categories.rake
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.rake
docker.rake
documentation.rake DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00
emails.rake
emoji.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
export.rake
groups.rake
hashtags.rake FEATURE: Add rake task to mark old hashtag format for rebake (#19876) 2023-01-18 10:16:05 +10:00
i18n.rake
images.rake
import.rake
incoming_emails.rake
integration.rake
javascript.rake DEV: Add support for aliases in HighlightJS languages (#20380) 2023-02-23 15:06:06 -05:00
log.rake
maxminddb.rake
plugin.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
populate.rake
populate.thor
posts.rake DEV: Replace #pluck_first freedom patch with AR #pick in core (#19893) 2023-02-13 12:39:45 +08:00
profile.rake
qunit.rake DEV: Enable `unless` cops 2023-02-21 10:30:48 +01:00
redis.rake
release_note.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
revisions.rake
rspec.rake
s3.rake
scheduler.rake
search.rake
site.rake
site_settings.rake
smoke_test.rake
svg_icons.rake DEV: Enable `unless` cops 2023-02-21 10:30:48 +01:00
tags.rake
themes.rake
topics.rake
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