This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-06 11:24:55 +01:00
1 parent 437df5d8b8
commit ed4630c671
119 files changed
+8531 -2882

No files matched your search

+1 -3
View File
@@ -25,9 +25,7 @@ def _html_to_text(html: str) -> str:
text = re.sub(r"<p[^>]*>", "\n\n", text, flags=re.IGNORECASE)
text = re.sub(r"</p>", "", text, flags=re.IGNORECASE)
text = re.sub(r"<li[^>]*>", "\n- ", text, flags=re.IGNORECASE)
text = re.sub(
r'<a[^>]*href="([^"]+)"[^>]*>(.*?)</a>', r"\2 (\1)", text, flags=re.IGNORECASE
)
text = re.sub(r'<a[^>]*href="([^"]+)"[^>]*>(.*?)</a>', r"\2 (\1)", text, flags=re.IGNORECASE)
text = re.sub(
r"<pre[^>]*>(.*?)</pre>", r"\n```\n\1\n```\n", text, flags=re.DOTALL | re.IGNORECASE
)