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
1 changed files with 6 additions and 2 deletions

View File

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