Skip to content

Commit

Permalink
fix: refreshing theme will not crash diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusk08 committed Dec 11, 2024
1 parent cab192e commit 83dd92f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 42 deletions.
79 changes: 40 additions & 39 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,50 +221,51 @@
},
"active": "b91a6593887c6c6b",
"lastOpenFiles": [
"_site/getting-started/index.html",
"_site/getting-started",
"_site/write-a-new-post/index.html",
"_site/write-a-new-post",
"_site/text-and-typography/index.html",
"_site/text-and-typography",
"_site/categories/tutorial/index.html",
"_site/categories/tutorial",
"_site/categories/demo/index.html",
"_site/categories/demo",
"_site/categories/blogging/index.html",
"_posts/2024-11-21-start-up.md",
"_posts/2019-08-09-getting-started.md",
"_posts/2019-08-08-write-a-new-post.md",
"_posts/2019-08-08-text-and-typography.md",
"_site/start-up/index.html",
"_site/start-up",
"_site/page5/index.html",
"_site/page5",
"_site/what-makes-you-happy/index.html",
"_site/what-makes-you-happy",
"_site/a-year-with-too/index.html",
"_site/a-year-with-too",
"_site/su-truong-thanh/index.html",
"_site/su-truong-thanh",
"_site/assets/img/site/tkt-website.webp",
"_site/assets/img/site/tks-teams.webp",
"_site/assets/img/site/tks-employee.webp",
"_site/assets/img/site/tk-teams.webp",
"_site/assets/img/site/thai-khuong-song.webp",
"_site/assets/img/site/stk-planning.webp",
"_site/assets/img/site/real-time-report.webp",
"_site/assets/img/site/reading-book.webp",
"_site/assets/img/site/old-website.webp",
"_site/assets/img/site/medeze-stemcell.gif",
"_drafts/2019-08-08-text-and-typography.md",
"_posts/2023-12-31-2023-mot-nam-nhin-lai.md",
"_tabs/productions.md",
"_drafts/2024-04-20-coffee.md",
"node_modules/@img/sharp-libvips-darwin-x64/README.md",
"node_modules/sharp/README.md",
"node_modules/sharp/node_modules/semver/README.md",
"node_modules/@emnapi/runtime/README.md",
"node_modules/p-map/readme.md",
"node_modules/detect-libc/README.md",
"node_modules/color/node_modules/color-convert/README.md",
"node_modules/lqip-modern/readme.md",
"node_modules/color/README.md",
"node_modules/simple-swizzle/node_modules/is-arrayish/README.md",
"node_modules/color/node_modules/color-name/README.md",
"node_modules/color-string/README.md",
"node_modules/@img/sharp-darwin-x64/README.md",
"node_modules/color/node_modules/color-convert/CHANGELOG.md",
"node_modules/simple-swizzle/README.md",
"assets/img/site/tkt-website.webp",
"assets/img/site/tks-teams.webp",
"assets/img/site/tks-employee.webp",
"assets/img/site/tk-teams.webp",
"assets/img/site/thai-khuong-song.webp",
"assets/img/site/stk-planning.webp",
"assets/img/site/real-time-report.webp",
"assets/img/site/reading-book.webp",
"assets/img/site/old-website.webp",
"assets/img/site/medeze-stemcell.gif",
"_posts/2024-10-22-what-makes-you-happy.md",
"_posts/2024-10-20-a-year-with-too.md"
"_posts/2024-10-20-a-year-with-too.md",
"_posts/2024-09-29-su-truong-thanh.md",
"_posts/2024-06-16-cv?.md",
"_posts/2024-06-08-goodbye-brad.md",
"_posts/2023-12-31-2023-mot-nam-nhin-lai.md",
"_posts/2023-11-10-my-pet.md",
"_posts/2023-09-01-obsidian.md",
"_posts/2023-07-23-an-nam.md",
"_posts/2023-06-16-golf-vietnam.md",
"_posts/2023-05-26-gojek-datbike.md",
"_posts/2023-04-27-noi-so-AI.md",
"_posts/2023-04-01-ly-tri.md",
"_posts/2023-03-23-morning-coffee.md",
"_posts/2023-03-08-xanh-sm.md",
"_posts/2022-12-25-tu-su.md",
"_posts/2022-12-17-2022-mot-nam-nhin-lai.md",
"_posts/2022-11-10-hoai-niem.md",
"_posts/2022-08-29-Gen-Z.md",
"_posts/2022-08-23-quit-job.md"
]
}
2 changes: 1 addition & 1 deletion _javascript/modules/components/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function refreshTheme(event) {

[...mermaidList].forEach((elem) => {
const svgCode = elem.previousSibling.children.item(0).innerHTML;
elem.textContent = svgCode;
elem.innerHTML = svgCode;
elem.removeAttribute('data-processed');
});

Expand Down
2 changes: 1 addition & 1 deletion assets/js/dist/page.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/dist/post.min.js

Large diffs are not rendered by default.

0 comments on commit 83dd92f

Please sign in to comment.