- 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>
- Set input height to 21px and offset top by 2px to align '1' visually with '/1'
- Update JSDoc submodule (build scripts, doc/text conversion improvements)
- Update pdf.js submodule (annotation layer, presentation mode fixes)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace mammoth.js .doc handler with JSDoc (Alpaq92/JSDoc submodule)
- Fix RTF.js rendering via jQuery append instead of appendChild
- Use import.meta.env.BASE_URL for asset paths to support /PreviewJS/ base
- Add GitHub Actions: deploy.yml (push-triggered Pages deploy) and
update-submodules.yml (monthly cron with release creation)
- Add .gitignore, README.md with Credits, MIT LICENSE
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ODF: webodf npm package is an empty stub with no webodf.js, and there is
no working CDN for it. Replace with a pure-JS ODF->HTML converter using
jszip: reads content.xml from the ODF ZIP, walks text:/table:/draw:
namespace elements, extracts embedded images as blob URLs. Covers ODT,
ODS, ODP and ODF.
DOC: catch the JSZip "not a ZIP" error thrown by mammoth on binary OLE
.doc files and surface a human-readable message asking to re-save as
.docx instead of showing a raw stack trace.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The rtf.js npm package index.js uses ESM imports without .js extensions
(broken on Node ESM) and its UMD bundles require jQuery — not importable
via Vite's module pipeline.
Fix: copy EMFJS/WMFJS/RTFJS bundle min files to public/rtfjs/, load them
sequentially via dynamic <script> injection (jQuery from CDN, then the
three bundles in dependency order). Scripts are cached so they only load
once per session. Removes rtf.js from Vite optimizeDeps.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Drop zone now uses min(90%, 620px) instead of 100% width
- viewerContainer uses align-items:center so dropzone is vertically centred
- docContainer overrides with align-self:flex-start so pages stack from top
- EXT_MAP maps .doc -> docx renderer (mammoth handles legacy Word best-effort)
- Accept attribute and format tags updated to include .doc
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>