From 738f3f52298ecb2619b3493dd42f472fda0a6d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sat, 5 May 2018 11:21:07 +0200 Subject: [PATCH] Load missing libraries for server-side PrettyText --- lib/pretty_text.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pretty_text.rb b/lib/pretty_text.rb index 082835eb919..ebfe8a23e1b 100644 --- a/lib/pretty_text.rb +++ b/lib/pretty_text.rb @@ -82,6 +82,8 @@ module PrettyText ctx_load_manifest(ctx, "markdown-it-bundle.js") root_path = "#{Rails.root}/app/assets/javascripts/" + apply_es6_file(ctx, root_path, "discourse/helpers/parse-html") + apply_es6_file(ctx, root_path, "discourse/lib/to-markdown") apply_es6_file(ctx, root_path, "discourse/lib/utilities") PrettyText::Helpers.instance_methods.each do |method|