flatten parameters

This commit is contained in:
saidsurucu
2025-05-28 18:42:16 +03:00
parent 12bb62cd9c
commit 3bcf2bbf2a
8 changed files with 320 additions and 35 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ class AnayasaBireyselBasvuruApiClient:
markdown_text = None
temp_file_path = None
try:
md_converter = MarkItDown(enable_plugins=False)
md_converter = MarkItDown()
with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".html", encoding="utf-8") as tmp_file:
if not html_input_for_markdown.strip().lower().startswith(("<html", "<!doctype")):
tmp_file.write(f"<html><head><meta charset=\"UTF-8\"></head><body>{html_input_for_markdown}</body></html>")
+1 -1
View File
@@ -224,7 +224,7 @@ class AnayasaMahkemesiApiClient:
markdown_text = None
temp_file_path = None
try:
md_converter = MarkItDown(enable_plugins=False)
md_converter = MarkItDown()
with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".html", encoding="utf-8") as tmp_file:
# Ensure the content is wrapped in basic HTML structure if it's not already
if not html_input_for_markdown.strip().lower().startswith(("<html", "<!doctype")):