This commit is contained in:
parent
2b5a9f9f1a
commit
a3cc2b80f6
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue