mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 export pdf
This commit is contained in:
@@ -255,7 +255,7 @@
|
||||
display: inline-block !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
right: 7px !important;
|
||||
right: 8px !important;
|
||||
outline: 0 !important;
|
||||
background: 0 0 !important;
|
||||
text-decoration: initial !important;
|
||||
|
||||
@@ -315,6 +315,7 @@ const renderPDF = async (id: string) => {
|
||||
Protyle.highlightRender(previewElement, "${servePath}/stage/protyle");
|
||||
previewElement.querySelectorAll('[data-type="NodeMathBlock"]').forEach((item) => {
|
||||
item.style.width = "";
|
||||
item.style.boxSizing = "border-box";
|
||||
item.style.width = Math.min(item.clientWidth, width) + "px";
|
||||
item.removeAttribute('data-render');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user