Skip to content

Commit

Permalink
fix: fix katex exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Apr 25, 2022
1 parent 620efd2 commit 2583f5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/components/ExportPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ export default defineComponent({
if (node.tagName === 'PRE' && node.dataset.lang) {
node.classList.add('sourceCode', node.dataset.lang)
}
// remove katex-html
if (node.classList.contains('katex-html')) {
node.remove()
}
}
})
Expand Down

0 comments on commit 2583f5f

Please sign in to comment.