2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Don't depend on imports for md extensions

This commit is contained in:
Sam 2017-07-11 16:48:25 -04:00
parent 5d139e461c
commit 98e03b04b5
6 changed files with 16 additions and 66 deletions

View file

@ -81,6 +81,10 @@ module PrettyText
ctx_load(ctx, "vendor/assets/javascripts/lodash.js")
ctx_load_manifest(ctx, "pretty-text-bundle.js")
if SiteSetting.enable_experimental_markdown_it
ctx_load_manifest(ctx, "markdown-it-bundle.js")
end
root_path = "#{Rails.root}/app/assets/javascripts/"
apply_es6_file(ctx, root_path, "discourse/lib/utilities")