1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Clipper: Skip style section when importing HTML

This commit is contained in:
Laurent Cozic
2018-05-24 13:32:43 +01:00
parent f79d7b9626
commit 9db9d98419
8 changed files with 81 additions and 22 deletions

View File

@@ -10,6 +10,7 @@ class HtmlToMd {
})
turndown.use(turndownPluginGfm)
turndown.remove('script');
turndown.remove('style');
let md = turndown.turndown(html)
if (options.baseUrl) md = markdownUtils.prependBaseUrl(md, options.baseUrl);
return md;