{
  "name": "@amitdevx/md2pdf",
  "version": "0.9.8",
  "description": "Convert Markdown to PDF with Mermaid diagrams, KaTeX math, Obsidian syntax, syntax highlighting, batch processing, TOC, and custom themes. CLI + Node.js API.",
  "type": "module",
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    }
  },
  "bin": {
    "md2pdf": "dist/cli/index.js"
  },
  "files": [
    "dist",
    "themes",
    "assets",
    "README.md",
    "LICENSE",
    "CHANGELOG.md"
  ],
  "engines": {
    "node": ">=20"
  },
  "sideEffects": false,
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "prebuild": "node scripts/build-katex-css.mjs",
    "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly && tsc -p tsconfig.themes.json && node -e \"const fs=require('fs'),path=require('path');fs.readdirSync('src/themes').forEach(d=>{const s=path.join('src/themes',d,'theme.css');if(fs.existsSync(s))fs.copyFileSync(s,path.join('themes',d,'theme.css'));});\"",
    "dev": "tsup --watch",
    "pretest": "node scripts/build-katex-css.mjs",
    "test": "vitest run",
    "test:watch": "vitest",
    "bench": "vitest bench --run",
    "bench:mermaid": "node dist/cli/index.js tests/benchmarks/mermaid-50-diagrams.md -o tests/output/mermaid-bench.pdf",
    "lint": "eslint src/ tests/",
    "lint:fix": "eslint src/ tests/ --fix",
    "typecheck": "tsc --noEmit",
    "clean": "node -e \"require('fs').rmSync('dist', {recursive:true,force:true})\"",
    "prepare": "husky install || true",
    "prepublishOnly": "npm run clean && npm run build"
  },
  "author": {
    "name": "Amit Divekar",
    "url": "https://amitdevx.tech"
  },
  "funding": {
    "type": "github",
    "url": "https://github.com/sponsors/amitdevx"
  },
  "contributors": [],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/amitdevx/md2pdf.git"
  },
  "homepage": "https://amitdevx.tech/projects/amitdevx-md2pdf",
  "bugs": {
    "url": "https://github.com/amitdevx/md2pdf/issues"
  },
  "keywords": [
    "markdown-to-pdf",
    "md-to-pdf",
    "html-to-pdf",
    "markdown-to-pdf-converter",
    "obsidian-to-pdf",
    "markdown-renderer",
    "document-generation",
    "code-highlighting",
    "cli-tool",
    "markdown pdf",
    "pdf generator",
    "mermaid pdf",
    "mermaid diagrams",
    "katex",
    "math pdf",
    "latex math",
    "obsidian markdown",
    "obsidian pdf",
    "syntax highlighting",
    "shiki",
    "table of contents",
    "batch pdf",
    "headless chromium",
    "playwright",
    "unified",
    "remark",
    "rehype",
    "cli",
    "typescript",
    "gfm",
    "github flavored markdown",
    "footnotes",
    "callouts",
    "wiki-links",
    "pdf-lib",
    "node pdf",
    "document converter"
  ],
  "license": "MIT",
  "dependencies": {
    "@shikijs/rehype": "^4.4.3",
    "commander": "^11.1.0",
    "fast-glob": "^3.3.3",
    "gray-matter": "^4.0.3",
    "jiti": "^2.7.0",
    "js-yaml": "^4.1.0",
    "katex": "^0.16.47",
    "mime-types": "^3.0.2",
    "ora": "^5.4.1",
    "pdf-lib": "^1.17.1",
    "pdf-lib-encrypt": "^1.0.3",
    "picocolors": "^1.0.0",
    "playwright-core": "1.61.1",
    "rehype-katex": "^7.0.1",
    "rehype-sanitize": "^6.0.0",
    "rehype-slug": "^6.0.0",
    "rehype-stringify": "^10.0.0",
    "remark-frontmatter": "^5.0.0",
    "remark-gfm": "^4.0.0",
    "remark-math": "^6.0.0",
    "remark-parse": "^11.0.0",
    "remark-rehype": "^11.0.0",
    "remark-stringify": "^11.0.0",
    "shiki": "^4.4.3",
    "unified": "^11.0.4",
    "unist-util-visit": "^5.1.0",
    "zod": "^4.4.3"
  },
  "devDependencies": {
    "@eslint/js": "^9.39.5",
    "@types/hast": "^3.0.5",
    "@types/js-yaml": "^4.0.9",
    "@types/mime-types": "^3.0.1",
    "@types/node": "^20.19.43",
    "esbuild": "^0.28.2",
    "eslint": "^9.39.5",
    "husky": "^8.0.3",
    "lint-staged": "^15.5.2",
    "prettier": "^3.9.6",
    "tsup": "^8.0.1",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.67.0",
    "vitest": "^3.2.7"
  },
  "lint-staged": {
    "*.ts": [
      "eslint --fix",
      "prettier --write"
    ]
  },
  "allowScripts": {
    "esbuild@0.27.7": true,
    "esbuild@0.21.5": true
  },
  "overrides": {
    "esbuild": "^0.28.2"
  }
}
