Vanessa 2024-12-11 17:57:19 +08:00
parent 2b5a9f9f1a
commit a3cc2b80f6

View file

@ -318,6 +318,9 @@ const renderPDF = async (id: string) => {
item.style.width = Math.min(item.clientWidth, width) + "px";
item.removeAttribute('data-render');
})
previewElement.querySelectorAll('[data-type="NodeCodeBlock"][data-subtype="mermaid"] svg').forEach((item) => {
item.style.maxHeight = width * 1.414 + "px";
})
Protyle.mathRender(previewElement, "${servePath}/stage/protyle", true);
previewElement.querySelectorAll("table").forEach(item => {
if (item.clientWidth > item.parentElement.clientWidth) {