Repository navigation
What's Changed
Diagrams survive the trip. Where 1.6.0 taught get-md to read PDF, DOCX, and Markdown, this release is about not throwing away the one thing a Markdown converter usually destroys: Mermaid diagrams. get-md now preserves fences it finds, recovers source from diagrams a browser has already rendered to <svg>, optionally reconstructs diagrams drawn into a PDF using a vision model, and optionally checks that whatever comes out actually parses.
Installation
# Install stable version
npm install -g @nanocollective/get-md
# Install this specific version
npm install -g @nanocollective/get-md@1.7.0Usage
getmdOR
import { convertToMarkdown } from "@nanocollective/get-md";
// From HTML string
const result = await convertToMarkdown("<h1>Hello</h1><p>World</p>");
console.log(result.markdown);Full Changelog: v1.6.0...v1.7.0