Parse markdown into H1 sections with unified and remark, then export normalized content as JSON, CSV, Markdown, HTML, PDF, or plain text in the browser.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
app/page.tsxapp/layout.tsxREADME.mdnpm packages
12
Registry components
lib/markdown-export.tsCore parsing with unified/remark/remark-gfm and unist-util-visit on root children; export helpers for JSON, CSV, MD, HTML (escaped), PDF (dynamic jspdf), and plain text via file-saver.
Parse markdown into H1 sections with unified and remark, then export normalized content as JSON, CSV, Markdown, HTML, PDF, or plain text in the browser.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
app/page.tsxapp/layout.tsxREADME.mdnpm packages
12
Registry components
lib/markdown-export.tsCore parsing with unified/remark/remark-gfm and unist-util-visit on root children; export helpers for JSON, CSV, MD, HTML (escaped), PDF (dynamic jspdf), and plain text via file-saver.
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Parse markdown into H1 sections with unified and remark, then export normalized content as JSON, CSV, Markdown, HTML, PDF, or plain text in the browser.
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Parse markdown into H1 sections with unified and remark, then export normalized content as JSON, CSV, Markdown, HTML, PDF, or plain text in the browser.