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