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:
8
browser/lib/turndown.js
Normal file
8
browser/lib/turndown.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user