mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FEATURE: Allow selection of highlight js languages
PERF: stop loading highlight js on load To get latest highlight js run bin/rake highlightjs:update
This commit is contained in:
parent
1e339ad527
commit
a82530012a
137 changed files with 277 additions and 26 deletions
|
@ -32,6 +32,9 @@ module Discourse
|
|||
require 'es6_module_transpiler/rails'
|
||||
require 'js_locale_helper'
|
||||
|
||||
# tiny file needed by site settings
|
||||
require 'highlight_js/highlight_js'
|
||||
|
||||
# mocha hates us, active_support/testing/mochaing.rb line 2 is requiring the wrong
|
||||
# require, patched in source, on upgrade remove this
|
||||
if Rails.env.test? || Rails.env.development?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue