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

Create turndown service & use gfm turndown plugin

This commit is contained in:
AWolf81
2019-07-28 15:02:17 +02:00
parent a3f7d2287a
commit 0d36f59036
3 changed files with 12 additions and 4 deletions

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

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