FEATURE: server side support for upload:// markdown

This allows uploads to be specified using short sha1 hash instead of full
URL

Client side change is pending
This commit is contained in:
Sam
2017-08-22 11:46:15 -04:00
parent b00747fd49
commit bcf7dc38c2
11 changed files with 202 additions and 0 deletions

View File

@ -165,6 +165,7 @@ module PrettyText
__optInput.customEmoji = #{custom_emoji.to_json};
__optInput.emojiUnicodeReplacer = __emojiUnicodeReplacer;
__optInput.lookupInlineOnebox = __lookupInlineOnebox;
__optInput.lookupImageUrls = __lookupImageUrls;
#{opts[:linkify] == false ? "__optInput.linkify = false;" : ""}
__optInput.censoredWords = #{WordWatcher.words_for_action(:censor).join('|').to_json};
JS