This commit is contained in:
Thorsten
2026-03-17 09:02:08 +01:00
parent 63a2667810
commit 34d9a51bf4
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -65,6 +65,8 @@ def post_to_blog(category: str, md_file: Path, date: str) -> bool:
return False
content = md_file.read_text(encoding="utf-8").strip()
# Claude escaped slash as \/ – im Blog unnötig
content = content.replace('\\/', '/')
if len(content) < 50:
logger.warning("Blog: Datei zu kurz (%d Zeichen), übersprungen.", len(content))
return False
+2
View File
@@ -53,6 +53,8 @@ def to_markdownv2(text: str) -> str:
Fließtext: alle MarkdownV2-Sonderzeichen werden escaped (inkl. * und _).
Formatierungs-Spans (*...* _..._): Inhalt wird escaped, Marker bleiben.
"""
# Claude escaped slash as \/ – das ist in MarkdownV2 unnötig und wird hier entfernt
text = text.replace('\\/', '/')
parts = _FMT_SPAN.split(text)
result = []
for idx, part in enumerate(parts):