Skip to content

Commit

Permalink
fix(css): KaTeX gray border
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 6, 2021
1 parent a2d9fcd commit 0bf192e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Learn more: [**Why Slidev?**](https://sli.dev/guide/why)

- πŸ“ **Markdown-based** - use your favorite editors and workflow
- 🎨 **Themable** - theme can be shared and used with npm packages
- πŸ§‘β€πŸ’» **Developer Friendly** - built-in code highlighting, live coding, LaTex, etc.
- πŸ§‘β€πŸ’» **Developer Friendly** - built-in code highlighting, live coding, LaTeX, etc.
- 🀹 **Interactive** - embedding Vue components seamlessly
- πŸŽ₯ **Recording** - built-in recording and camera view
- πŸ“€ **Portable** - export into PDF, PNGs, or even a hostable SPA
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@ $$
$$
```

Learn more: [KaTeX](https://katex.org/) | [`markdown-it-katex`](https://github.com/waylonflinn/markdown-it-katex).
Learn more: [Demo](https://sli.dev/demo/starter/6) | [KaTeX](https://katex.org/) | [`markdown-it-katex`](https://github.com/waylonflinn/markdown-it-katex).
7 changes: 7 additions & 0 deletions packages/client/styles/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ html:not(.dark) .shiki-dark {
.shiki-container > .shiki {
@apply h-full;
}

// revert windicss preflight for katex
.katex,
.katex :after,
.katex :before {
border-color: currentColor;
}

0 comments on commit 0bf192e

Please sign in to comment.