Replies: 1 comment
-
The render of markmap depends on its style. So you must render it after the CSS is loaded. Another way is to load all assets on page load. Server side: // Get all assets and pass it to FE
const allAssets = transformer.getAssets(); Client side: // on page load
const { styles, scripts } = await getAllAssets();
loadCSS(styles);
await loadJS(scripts); Sorry I just realized that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've modified the parameter passing for loadCSS and loadJS. However, now when the page loads for the first time and I click the submit button, the formula appears normal, but the bottom line is still super long. When I click the button a second time, the entire formula including the bottom line goes back to normal. How should I solve this problem? I've noticed that the online examples don't have this issue. Sorry, I'm a novice.
Back-end code.
Front-end code
First click after page loads
Second click on the same content after the page loads.
Beta Was this translation helpful? Give feedback.
All reactions