You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Clipper: Added first files
This commit is contained in:
13
ReactNativeClient/lib/HtmlToMd.js
Normal file
13
ReactNativeClient/lib/HtmlToMd.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const TurndownService = require('turndown')
|
||||
|
||||
class HtmlToMd {
|
||||
|
||||
parse(html) {
|
||||
const turndownService = new TurndownService()
|
||||
let markdown = turndownService.turndown(html)
|
||||
return markdown;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = HtmlToMd;
|
||||
Reference in New Issue
Block a user