Files
bentopdf/package.json
TENSAI 5db93f9fa0 feat: Add Markdown to PDF conversion functionality (#59)
* feat: Add Markdown to PDF conversion functionality

- Implement dual-panel interface with live preview
- Support 3 Markdown flavors: GitHub, CommonMark, Pandoc
- Add file upload support for .md files
- Implement image quality settings (High/Medium/Low)
- Add professional user messaging and error handling
- Support all common Markdown elements (headers, lists, tables, code blocks, etc.)
- Add automatic navigation back to tool after completion

Resolves #37

* fix: improve markdown to PDF conversion with math support and better rendering

- Add KaTeX support for mathematical expressions (inline and block math)
- Fix horizontal separator rendering with improved CSS
- Enhance table rendering with proper borders and cell styling
- Replace CDN dependencies with local KaTeX installation
- Add comprehensive math preprocessing for $...$ and 20112...20112 syntax
- Improve markdown preview with real-time math rendering
- Update UI placeholder text with math examples
- Add fallback rendering for math expressions when KaTeX fails

Resolves issues with:
- Horizontal separators not rendering properly
- Tables missing borders and proper structure
- Mathematical expressions not displaying correctly

---------

Co-authored-by: syazkun <mohamadsyazwan193@gmail.com>
2025-10-23 11:52:04 +05:30

65 lines
1.8 KiB
JSON

{
"name": "bento-pdf",
"private": true,
"version": "1.1.0",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"obfuscate": "node scripts/build.mjs",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"build:docker": "vite build",
"format": "prettier --write .",
"release": "node scripts/release.js patch",
"release:minor": "node scripts/release.js minor",
"release:major": "node scripts/release.js major",
"serve:simple": "SIMPLE_MODE=true npm run build && npx serve dist -p 3000"
},
"devDependencies": {
"@testing-library/dom": "^10.4.1",
"@types/blob-stream": "^0.1.33",
"@types/html2canvas": "^1.0.0",
"@types/pdfkit": "^0.17.3",
"@types/sortablejs": "^1.15.8",
"@types/utif": "^3.0.6",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"jsdom": "^27.0.1",
"prettier": "^3.6.2",
"ts-migrate": "^0.1.35",
"typescript": "~5.9.3",
"vite": "^7.1.11",
"vite-plugin-node-polyfills": "^0.24.0",
"vitest": "^3.2.4"
},
"dependencies": {
"@neslinesli93/qpdf-wasm": "^0.3.0",
"@tailwindcss/vite": "^4.1.15",
"blob-stream": "^0.1.3",
"cropperjs": "^1.6.1",
"heic2any": "^0.0.4",
"html2canvas": "^1.4.1",
"javascript-obfuscator": "^4.1.1",
"jspdf": "^3.0.3",
"jszip": "^3.10.1",
"katex": "^0.16.25",
"lucide": "^0.545.0",
"marked": "^16.4.1",
"pdf-lib": "^1.17.1",
"pdfjs-dist": "^5.4.296",
"pdfkit": "^0.17.2",
"sortablejs": "^1.15.6",
"tailwindcss": "^4.1.14",
"terser": "^5.44.0",
"tesseract.js": "^6.0.1",
"tiff": "^7.1.2",
"utif": "^3.1.0"
}
}