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

Clipper: Improved UI and integration with main app

This commit is contained in:
Laurent Cozic
2018-05-20 10:19:59 +01:00
parent c96a416c2c
commit 7ed9c2770c
43 changed files with 4826 additions and 1373 deletions

View File

@@ -3,8 +3,11 @@ const TurndownService = require('turndown')
class HtmlToMd {
parse(html) {
const turndownService = new TurndownService()
let markdown = turndownService.turndown(html)
const turndownPluginGfm = require('turndown-plugin-gfm').gfm
const turndown = new TurndownService()
turndown.use(turndownPluginGfm)
turndown.remove('script');
let markdown = turndown.turndown(html)
return markdown;
}