Skip to content

Commit

Permalink
🎨 #13417
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 11, 2024
1 parent 2b5a9f9 commit a3cc2b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/protyle/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3cc2b8

Please sign in to comment.