// @generated — DO NOT EDIT. Source: packages/shared/html-to-markdown.ts /** * HTML-to-Markdown conversion via Turndown. * * Shared between the CLI (single HTML file / URL) and the server * (on-demand conversion for HTML files in folder mode). */ import TurndownService from "turndown"; // @ts-expect-error — @joplin/turndown-plugin-gfm ships JS only, no .d.ts (see declarations.d.ts for local types) import { gfm } from "@joplin/turndown-plugin-gfm"; const td = new TurndownService({ headingStyle: "atx", codeBlockStyle: "fenced", bulletListMarker: "-", }); td.use(gfm); // Strip