From 4e66b6f4f74038720fd11546fec357bf8745c122 Mon Sep 17 00:00:00 2001 From: xunbu Date: Thu, 8 May 2025 23:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E4=BA=86html=E4=B8=ADlatex?= =?UTF-8?q?=E7=9A=84=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 106 +++++++++++++++--------------------- docutranslate/translater.py | 14 ++++- 2 files changed, 57 insertions(+), 63 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 734746d..5106f60 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,8 @@ - + + - { + "keyToString": { + "DefaultHtmlFileTemplate": "HTML File", + "JavaScript 调试.output.html (1).executor": "Run", + "JavaScript 调试.output.html.executor": "Run", + "JavaScript 调试.regex_中文.html.executor": "Run", + "JavaScript 调试.test2_英文.html.executor": "Run", + "JavaScript 调试.互联网认证授权机制_英文.html.executor": "Run", + "ModuleVcsDetector.initialDetectionPerformed": "true", + "Python 测试.Python 测试 (markdown_mask.py 内).executor": "Run", + "Python 测试.markdown_mask.Test.test_basic_link_masking 的 Python 测试.executor": "Run", + "Python.PDFtranslater (1).executor": "Run", + "Python.PDFtranslater (2).executor": "Run", + "Python.agent_utils.executor": "Run", + "Python.convert.executor": "Run", + "Python.markdown_splitter.executor": "Run", + "Python.markdown_utils.executor": "Run", + "Python.test.executor": "Run", + "Python.test1.executor": "Run", + "Python.test2.executor": "Run", + "Python.translater.executor": "Debug", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.git.unshallow": "true", + "git-widget-placeholder": "main", + "last_opened_file_path": "C:/Users/jxgm/Desktop/FileTranslate/tests/resource", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "Errors", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -77,7 +78,7 @@ - + @@ -329,7 +310,8 @@ - + + @@ -339,7 +321,7 @@ - + diff --git a/docutranslate/translater.py b/docutranslate/translater.py index 42426c0..c362f3b 100644 --- a/docutranslate/translater.py +++ b/docutranslate/translater.py @@ -174,11 +174,22 @@ hello, what's your name? font-size: 15px; }} + + + {markdowner.convert(self.markdown)} - + """ with open(full_name, "w") as file: