make named options argument optional
This commit is contained in:
parent
ea1faacd8b
commit
0adca10f9f
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ 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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue