A framework-agnostic, universal document renderer with optional chunked loading polyrender.wisp.place/
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

add missing renderer info to readme

aria ee6d7aa8 b4b32941

+29
+29
README.md
··· 30 30 npm install docx-preview # DOCX 31 31 npm install papaparse # CSV/TSV 32 32 npm install highlight.js # Code syntax highlighting 33 + npm install jszip # ODT 34 + npm install xlsx # ODS 33 35 ``` 34 36 35 37 You only need to install peer dependencies for the formats you plan to render. Unused formats won't add to your bundle. ··· 315 317 } 316 318 ``` 317 319 320 + ### ODT 321 + 322 + ```typescript 323 + { 324 + odt: { 325 + fontSize: 16, // Base font size in pixels (default 16) 326 + fontFamily: 'Georgia', // Font override 327 + } 328 + } 329 + ``` 330 + 331 + ### ODS 332 + 333 + ```typescript 334 + { 335 + ods: { 336 + maxRows: 10000, // Max rows to render per sheet (default 10000) 337 + sortable: true, // Enable column sorting (default true) 338 + header: true, // First row is header (default true) 339 + } 340 + } 341 + ``` 342 + 318 343 ## Custom Renderers 319 344 320 345 Register a renderer for any format: ··· 353 378 | PDF | `pdfjs-dist` | `.pdf` | 354 379 | EPUB | `epubjs` | `.epub` | 355 380 | DOCX | `docx-preview` | `.docx`, `.doc` | 381 + | ODT | `jszip` | `.odt` | 382 + | ODS | `xlsx` | `.ods` | 356 383 | CSV/TSV | `papaparse` | `.csv`, `.tsv` | 357 384 | Code | `highlight.js` | `.js`, `.ts`, `.py`, `.rs`, `.go`, `.java`, `.c`, `.cpp`, +80 more | 358 385 | Text | _(none)_ | `.txt` | ··· 387 414 │ │ ├── chunked-pdf.ts # Chunked PDF streaming 388 415 │ │ ├── epub.ts # EPUB (epubjs) 389 416 │ │ ├── docx.ts # DOCX (docx-preview) 417 + │ │ ├── odt.ts # ODT (jszip) 418 + │ │ ├── ods.ts # ODS (xlsx) 390 419 │ │ ├── csv.ts # CSV/TSV (papaparse) 391 420 │ │ ├── code.ts # Code (highlight.js) 392 421 │ │ └── text.ts # Plain text