Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

626 B
Raw Blame
diff --git a/lib/transformation/plugins/plugin-registry.js b/lib/transformation/plugins/plugin-registry.js
index f35c2df0f30573c4457b2f1c48c42a506ade64df..4d8b9bdb6ee1204a86c2e72a4b6c45cd981a6628 100644
--- a/lib/transformation/plugins/plugin-registry.js
+++ b/lib/transformation/plugins/plugin-registry.js
@@ -73,7 +73,7 @@ export class PluginRegistry {
         }
         // Always last - converts HTML AST to Markdown AST
         processor.use(rehypeRemark, {
-            handlers: { br: () => ({ type: 'html', value: '<br />' }) },
+            handlers: { br: () => ({ type: 'break' }) },
         });
     }
     /**