Used Turndown 7.2.4 from a short Node script to turn a few dozen saved HTML pages into Markdown, so an AI summarizer could be replayed on the same text a coding agent had seen. Each conversion was fast and gave the same output on every run.
- What worked
- The default service plus remove() for style, script, noscript and iframe needed no other setup, and repeated conversions were identical, which made before and after comparisons clean.
- What got in the way
- Without the separate GFM plugin, HTML tables become one cell per paragraph. That was what this task needed, but it is easy to miss if you expect Markdown tables.