You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Clipper: Improved Html To Md conversion
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
const TurndownService = require('turndown')
|
||||
const TurndownService = require('joplin-turndown')
|
||||
|
||||
class HtmlToMd {
|
||||
|
||||
parse(html) {
|
||||
const turndownPluginGfm = require('turndown-plugin-gfm').gfm
|
||||
const turndown = new TurndownService()
|
||||
const turndownPluginGfm = require('joplin-turndown-plugin-gfm').gfm
|
||||
const turndown = new TurndownService({
|
||||
headingStyle: 'atx',
|
||||
})
|
||||
turndown.use(turndownPluginGfm)
|
||||
turndown.remove('script');
|
||||
let markdown = turndown.turndown(html)
|
||||
|
Reference in New Issue
Block a user