exportacao-multiplos-formatos

Convert ProseMirror manuscripts to DOCX, PDF, ePub, Markdown, and TXT formats.

Updated Jul 19, 2026
One-click install
npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill exportacao-multiplos-formatos-ryanzucchi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: exportacao-multiplos-formatos
Source: https://github.com/Ryanzucchi/Eldritch_Lich/tree/main/.agents/skills/exportacao-multiplos-formatos
Command: npx skills add https://github.com/Ryanzucchi/Eldritch_Lich --skill exportacao-multiplos-formatos-ryanzucchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docx, puppeteer, epub-gen, prosemirror-markdown, mammoth.

What problem does it solve? Writers need to deliver manuscripts to editors and publishers in standard formats like DOCX, PDF, and ePub, but converting rich editor content (ProseMirror JSON) while preserving formatting, footnotes, and chapter structure is error-prone and slow for long documents. ## Core Features & Use Cases - Multi-format export: Converts ProseMirror JSON documents to DOCX, PDF (via Puppeteer), ePub (split by chapters), Markdown, and TXT with metadata preservation. - Async processing for large documents: Queues exports above 50,000 words in a Bull job queue, returning a job ID and notifying via WebSocket when the file is ready. - DOCX import: Uses mammoth.js to extract content from external .docx files (e.g., Scrivener manuscripts) and converts it into valid ProseMirror JSON documents. - Use Case: A novelist exports an 80,000-word manuscript to DOCX with preserved bold, italics, and chapter headings in under 30 seconds via background processing. ## Quick Start Export the current manuscript to DOCX format, using the background job queue if the document exceeds the synchronous word limit.

Frequently Asked Questions about exportacao-multiplos-formatos

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a ProseMirror document to DOCX in Node.js?▼

Traverse the ProseMirror JSON node tree and map nodes to docx package objects: paragraphs become Paragraph, headings become Heading with levels, and bold/italic marks become styled TextRun. Footnotes map to FootnoteReference and Footnote elements.

How to generate PDF from HTML with Puppeteer?▼

Render the document as styled HTML on an internal page, then use Puppeteer's page.pdf method with A4 format and printBackground enabled. Include a header with the manuscript title and a footer with page numbers.

What library converts DOCX to HTML for import?▼

mammoth.js extracts simplified HTML from .docx files, preserving basic styles. The extracted HTML can then be parsed with DOMParser and a custom serializer to produce valid ProseMirror JSON.

Why do large PDF exports time out in HTTP requests?▼

Rendering novels of 300+ pages synchronously exceeds typical 30-second request timeouts. Queue the export as a background Bull job, return 202 Accepted with a job ID, and notify the user via WebSocket when the download is ready.

How do I split an ePub into chapters from ProseMirror JSON?▼

Split the document at level-1 heading nodes to generate the ePub navigation structure with epub-gen. Include Dublin Core metadata such as title, author, language, and ISBN if registered in the project.

When should document export not use this pipeline?▼

Do not use it for LGPD/GDPR user data compliance exports or GUF graph portability in JSON-LD format, which are handled by a dedicated compliance skill. This pipeline covers only manuscript format conversion.