Follow-up for 9a11a8b3 to fix qunit tests

This commit is contained in:
Gerhard Schlager 2019-07-11 23:56:22 +02:00
parent 9a11a8b33b
commit 4a095b286b

View File

@ -287,10 +287,14 @@ export function setup(opts, siteSettings, state) {
breaks: opts.discourse.features.newline,
xhtmlOut: false,
linkify: siteSettings.enable_markdown_linkify,
typographer: siteSettings.enable_markdown_typographer,
quotes: siteSettings.markdown_typographer_quotation_marks.split("|")
typographer: siteSettings.enable_markdown_typographer
});
const quotation_marks = siteSettings.markdown_typographer_quotation_marks;
if (quotation_marks) {
opts.engine.options.quotes = quotation_marks.split("|");
}
opts.engine.linkify.tlds(
(siteSettings.markdown_linkify_tlds || "").split("|")
);