Skip to content

Commit

Permalink
feat: manually import katex styles
Browse files Browse the repository at this point in the history
  • Loading branch information
condorheroblog committed Nov 18, 2024
1 parent b071d83 commit 8a95a16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/extensions/Katex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ next:
## Usage

```tsx

import 'katex/dist/katex.min.css'; // [!code ++]
import { Katex } from 'reactjs-tiptap-editor'; // [!code ++]

const extensions = [
Expand Down
1 change: 1 addition & 0 deletions playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import RichTextEditor, {
} from 'reactjs-tiptap-editor'

import 'reactjs-tiptap-editor/style.css'
import 'katex/dist/katex.min.css'

function convertBase64ToBlob(base64: string) {
const arr = base64.split(',')
Expand Down
11 changes: 5 additions & 6 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import './global';
@import './editor';
@import './ProseMirror';
@import 'katex/dist/katex.min.css';
@import './columns.scss';
@import './mention.scss';
@use './global';
@use './editor';
@use './ProseMirror';
@use './columns';
@use './mention';

0 comments on commit 8a95a16

Please sign in to comment.