mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 19:23:40 +00:00
turn flag into options object
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user