chore(turndown-plugin-gfm): align with upstream

219d5bcae3
This commit is contained in:
Elian Doran
2025-03-19 18:22:20 +02:00
parent d3423127d8
commit 2021c8f751
13 changed files with 246 additions and 112 deletions

View File

@@ -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();