Skip to content

Commit

Permalink
chore: update import of katex css
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Jul 18, 2024
1 parent 2e77020 commit cbce7f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@
rel="stylesheet"
href="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/wechatsync/article-syncjs@latest/dist/styles.css"
/> -->
<!-- KaTeX CSS -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"
crossorigin="anonymous"
/>

<style>
/**
Expand Down
3 changes: 3 additions & 0 deletions src/assets/scripts/renderers/wx-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { Renderer, marked } from 'marked'
import hljs from 'highlight.js'
import markedKatex from 'marked-katex-extension'

// KaTeX CSS
import 'katex/dist/katex.min.css'

marked.use(markedKatex({
throwOnError: false,
output: `html`,
Expand Down

0 comments on commit cbce7f7

Please sign in to comment.