UNPKG

@m2d/html

Version:

Extend MDAST by parsing embedded HTML in Markdown. Converts HTML into structured MDAST nodes compatible with @m2d/core for DOCX generation.

113 lines (112 loc) 2.75 kB
{ "name": "@m2d/html", "author": "Mayank Kumar Chaudhari (https://mayank-chaudhari.vercel.app)", "private": false, "version": "1.0.0", "description": "Extend MDAST by parsing embedded HTML in Markdown. Converts HTML into structured MDAST nodes compatible with @m2d/core for DOCX generation.", "license": "MPL-2.0", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "repository": "github:md2docx/html", "bugs": "https://github.com/md2docx/html/issues", "homepage": "https://github.com/md2docx/html/#readme", "sideEffects": false, "files": [ "dist/**" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "scripts": { "build": "tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c", "clean": "rm -rf dist", "dev": "tsup --watch && tsc -p tsconfig-build.json -w", "typecheck": "tsc --noEmit", "lint": "eslint src/", "lint:fix": "eslint src/ --fix", "test": "vitest run --coverage" }, "devDependencies": { "@repo/eslint-config": "workspace:*", "@repo/typescript-config": "workspace:*", "@testing-library/react": "^16.3.0", "@types/node": "^22.14.0", "@types/react": "^19.1.0", "@types/react-dom": "^19.1.1", "@vitejs/plugin-react": "^4.3.4", "@vitest/coverage-v8": "^3.1.1", "docx": "^9.3.0", "esbuild-plugin-rdi": "^0.0.0", "jsdom": "^26.0.0", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "tsup": "^8.4.0", "typescript": "^5.8.3", "unified": "^11.0.5", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.1.1" }, "dependencies": { "@m2d/core": "^0.0.4" }, "peerDependencies": { "docx": "^9.3.0" }, "funding": [ { "type": "github", "url": "https://github.com/sponsors/md2docx" }, { "type": "github", "url": "https://github.com/sponsors/mayank1513" } ], "keywords": [ "html", "html-in-markdown", "html-to-mdast", "extended-mdast", "mdast", "plugin", "markdown", "markdown-to-docx", "mdast-to-docx", "md2docx", "mdast2docx", "converter", "remark", "unified", "docx", "ms-word", "document-generator", "document-generation", "parser", "text-processing", "rich-text", "export", "images", "hyperlinks", "footnotes", "typescript", "open-source", "customizable", "modern", "seamless-integration", "cutting-edge", "compatibility", "progressive", "web-development", "frontend", "automation", "google-sheets", "generative-ai", "m2d", "mayank1513" ] }