1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-30 23:44:55 +02:00

Fixed webview issues

This commit is contained in:
Laurent Cozic
2020-10-16 11:56:21 +01:00
parent f537d22d7f
commit 1e0d2b7b86
17 changed files with 460 additions and 449 deletions

View File

@ -63,6 +63,11 @@ class MarkupToHtml {
return output;
}
clearCache(markupLanguage) {
const r = this.renderer(markupLanguage);
if (r.clearCache) r.clearCache();
}
async render(markupLanguage, markup, theme, options) {
return this.renderer(markupLanguage).render(markup, theme, options);
}