mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
@@ -1,13 +1,13 @@
|
||||
var Attendant = require('turndown-attendant')
|
||||
var TurndownService = require('turndown')
|
||||
var gfm = require('../lib/turndown-plugin-gfm.cjs').gfm
|
||||
const Attendant = require('turndown-attendant');
|
||||
const TurndownService = require('turndown');
|
||||
const gfm = require('../lib/turndown-plugin-gfm.cjs').gfm;
|
||||
|
||||
var attendant = new Attendant({
|
||||
file: __dirname + '/index.html',
|
||||
TurndownService: TurndownService,
|
||||
beforeEach: function (turndownService) {
|
||||
turndownService.use(gfm)
|
||||
}
|
||||
})
|
||||
const attendant = new Attendant({
|
||||
file: `${__dirname}/index.html`,
|
||||
TurndownService: TurndownService,
|
||||
beforeEach: function(turndownService) {
|
||||
turndownService.use(gfm);
|
||||
},
|
||||
});
|
||||
|
||||
attendant.run()
|
||||
attendant.run();
|
||||
|
||||
Reference in New Issue
Block a user