You've already forked joplin
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user