1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Merge pull request #3099 from AWolf81/html-to-md

Html to md feature
This commit is contained in:
Junyoung Choi
2019-09-03 02:03:51 +09:00
committed by GitHub
15 changed files with 590 additions and 12 deletions

9
browser/lib/turndown.js Normal file
View File

@@ -0,0 +1,9 @@
const TurndownService = require('turndown')
const { gfm } = require('turndown-plugin-gfm')
export const createTurndownService = function () {
const turndown = new TurndownService()
turndown.use(gfm)
turndown.remove('script')
return turndown
}