Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Nov 7, 2024
1 parent 13b51e9 commit 8927f1e
Show file tree
Hide file tree
Showing 9 changed files with 1,170 additions and 24 deletions.
19 changes: 19 additions & 0 deletions core/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,25 @@ const hooks = {
});
},
},
HighlightAll: {
mounted() {
this.run();
},
updated() {
this.run();
},
run() {
const elements = this.el.querySelectorAll("code");
for (const element of elements) {
codeToHtml(element.textContent, {
lang: "javascript",
theme: "rose-pine-dawn",
}).then((html) => {
element.innerHTML = html;
});
}
},
},
Highlight: {
mounted() {
this.run();
Expand Down
Loading

0 comments on commit 8927f1e

Please sign in to comment.