import turndownPluginGfm from '@guyplusplus/turndown-plugin-gfm'; import turndown from 'turndown'; import * as shared from './shared.js'; // init single reusable turndown service object upon import const turndownService = initTurndownService(); function initTurndownService() { const turndownService = new turndown({ headingStyle: 'atx', bulletListMarker: '-', codeBlockStyle: 'fenced' }); turndownService.use(turndownPluginGfm.tables); turndownService.remove(['style']); //