- Add markedjs/marked as a submodule - Install marked npm package for runtime rendering - Add MDRenderer that parses .md/.markdown files with marked and renders into doc-page - Register md/markdown extensions in EXT_MAP Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
592 B
JSON
24 lines
592 B
JSON
{
|
|
"name": "preview-js",
|
|
"version": "1.0.0",
|
|
"description": "Universal document viewer: PDF, ODF, RTF, DOCX — powered by pdf.js, WebODF, rtf.js and docx submodules",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"submodules:init": "git submodule update --init --recursive",
|
|
"docs": "jsdoc src -r -d docs"
|
|
},
|
|
"dependencies": {
|
|
"jszip": "^3.10.1",
|
|
"mammoth": "^1.8.0",
|
|
"marked": "^18.0.5",
|
|
"pdfjs-dist": "^4.9.155",
|
|
"rtf.js": "^2.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^6.0.7"
|
|
}
|
|
}
|