turn flag into options object

This commit is contained in:
Bruno Windels 2019-07-08 16:55:56 +02:00
parent e601037cd2
commit f6e71b2335
2 changed files with 3 additions and 3 deletions

View file

@ -33,10 +33,10 @@ export function mdSerialize(model) {
}, "");
}
export function htmlSerializeIfNeeded(model, forceHtml = false) {
export function htmlSerializeIfNeeded(model, {forceHTML = false}) {
const md = mdSerialize(model);
const parser = new Markdown(md);
if (!parser.isPlainText() || forceHtml) {
if (!parser.isPlainText() || forceHTML) {
return parser.toHTML();
}
}