// Convert HTML to Markdown. class TurndownConverter { constructor(p_adapter) { this.adapter = p_adapter; turndownPluginGfm.options.autoHead = true; this.ts = new TurndownService({headingStyle: 'atx', bulletListMarker: '*', emDelimiter: '*', hr: '***', codeBlockStyle: 'fenced', blankReplacement: function(content, node) { if (node.nodeName == 'SPAN') { return content; } return node.isBlock ? '\n\n' : '' }}); this.ts.use(turndownPluginGfm.gfm); // TODO: verify and copy several rules from VNote 2.0. // No
and