mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
⬆️ katex
This commit is contained in:
parent
67927598d9
commit
3403d67566
4 changed files with 6 additions and 6 deletions
|
|
@ -22,9 +22,9 @@ export const mathRender = (element: Element, cdn = Constants.PROTYLE_CDN, maxWid
|
|||
if (mathElements.length === 0) {
|
||||
return;
|
||||
}
|
||||
addStyle(`${cdn}/js/katex/katex.min.css?v=0.15.3`, "protyleKatexStyle");
|
||||
addScript(`${cdn}/js/katex/katex.min.js?v=0.15.3`, "protyleKatexScript").then(() => {
|
||||
addScript(`${cdn}/js/katex/mhchem.min.js?v=0.15.3`, "protyleKatexMhchemScript").then(() => {
|
||||
addStyle(`${cdn}/js/katex/katex.min.css?v=0.16.0`, "protyleKatexStyle");
|
||||
addScript(`${cdn}/js/katex/katex.min.js?v=0.16.0`, "protyleKatexScript").then(() => {
|
||||
addScript(`${cdn}/js/katex/mhchem.min.js?v=0.16.0`, "protyleKatexMhchemScript").then(() => {
|
||||
mathElements.forEach((mathElement: HTMLElement) => {
|
||||
if (mathElement.getAttribute("data-render") === "true") {
|
||||
return;
|
||||
|
|
|
|||
2
app/stage/protyle/js/katex/katex.min.css
vendored
2
app/stage/protyle/js/katex/katex.min.css
vendored
File diff suppressed because one or more lines are too long
2
app/stage/protyle/js/katex/katex.min.js
vendored
2
app/stage/protyle/js/katex/katex.min.js
vendored
File diff suppressed because one or more lines are too long
2
app/stage/protyle/js/katex/mhchem.min.js
vendored
2
app/stage/protyle/js/katex/mhchem.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue