From 644d4fa691a50e4be5f2900b10c238decc143c72 Mon Sep 17 00:00:00 2001 From: xunbu Date: Thu, 8 May 2025 22:06:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bhtml=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 12 ++++++------ docutranslate/translater.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e84bdbc..73e7fa2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ - + - + - + + - @@ -330,7 +330,7 @@ - + @@ -340,7 +340,7 @@ - + diff --git a/docutranslate/translater.py b/docutranslate/translater.py index 0d2b333..42426c0 100644 --- a/docutranslate/translater.py +++ b/docutranslate/translater.py @@ -160,7 +160,7 @@ hello, what's your name? # 确保输出目录存在 output_dir.mkdir(parents=True, exist_ok=True) full_name = output_dir / filename - markdowner = markdown2.Markdown(extras=['tables', 'fenced-code-blocks', 'mermaid']) + markdowner = markdown2.Markdown(extras=['tables', 'fenced-code-blocks', 'mermaid',"code-friendly"]) html = f"""