Skip to content

get-md v1.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Jul 18:38

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.0

Usage

getmd

OR

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