From 134626a34a23622584afc8e70f26516f4d22bb60 Mon Sep 17 00:00:00 2001 From: xunbu Date: Fri, 22 Aug 2025 14:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=9B=BE=E4=BF=AE=E5=A4=8Dmd=E8=BD=AC?= =?UTF-8?q?html=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=981.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docutranslate/exporter/md/md2html_exporter.py | 5 ++++- docutranslate/template/markdown.html | 7 ------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docutranslate/exporter/md/md2html_exporter.py b/docutranslate/exporter/md/md2html_exporter.py index 34180fa..43e6ba4 100644 --- a/docutranslate/exporter/md/md2html_exporter.py +++ b/docutranslate/exporter/md/md2html_exporter.py @@ -105,7 +105,10 @@ class MD2HTMLExporter(MDExporter): if __name__ == '__main__': from pathlib import Path - d = Document.from_path(r"C:\Users\jxgm\Desktop\matrixcookbook_translated.md") + d = Document.from_path(r"C:\Users\jxgm\Desktop\mcp文件夹\学习笔记\互联网认证授权机制\互联网认证授权机制.md" +) + # d = Document.from_path(r"C:\Users\jxgm\Desktop\matrixcookbook_translated.md") + exporter = MD2HTMLExporter() d1 = exporter.export(d) path = Path(r"C:\Users\jxgm\Desktop\a.html") diff --git a/docutranslate/template/markdown.html b/docutranslate/template/markdown.html index 51dd96d..afbac8d 100644 --- a/docutranslate/template/markdown.html +++ b/docutranslate/template/markdown.html @@ -26,13 +26,6 @@ securityLevel: 'loose', startOnLoad: true }); - // ***** 修改这里的选择器 ***** - document.querySelectorAll("pre.mermaid").forEach(item => { - observer.observe(item, { - attributes: true, - attributeFilter: ['data-processed'] - }); - }); \ No newline at end of file