试图修复md转html显示问题1.1
This commit is contained in:
@@ -105,7 +105,10 @@ class MD2HTMLExporter(MDExporter):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from pathlib import Path
|
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()
|
exporter = MD2HTMLExporter()
|
||||||
d1 = exporter.export(d)
|
d1 = exporter.export(d)
|
||||||
path = Path(r"C:\Users\jxgm\Desktop\a.html")
|
path = Path(r"C:\Users\jxgm\Desktop\a.html")
|
||||||
|
|||||||
@@ -26,13 +26,6 @@
|
|||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
startOnLoad: true
|
startOnLoad: true
|
||||||
});
|
});
|
||||||
// ***** 修改这里的选择器 *****
|
|
||||||
document.querySelectorAll("pre.mermaid").forEach(item => {
|
|
||||||
observer.observe(item, {
|
|
||||||
attributes: true,
|
|
||||||
attributeFilter: ['data-processed']
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user