mirror of
https://github.com/unclecode/crawl4ai.git
synced 2026-06-10 07:48:50 +00:00
fix: add newline before opening code fence in html2text (#462)
From PR #462 by @jtanningbed
This commit is contained in:
@@ -1146,7 +1146,7 @@ class CustomHTML2Text(HTML2Text):
|
||||
# Handle pre tags
|
||||
if tag == "pre":
|
||||
if start:
|
||||
self.o("```\n") # Markdown code block start
|
||||
self.o("\n```\n") # Markdown code block start
|
||||
self.inside_pre = True
|
||||
else:
|
||||
self.o("\n```\n") # Markdown code block end
|
||||
|
||||
Reference in New Issue
Block a user