Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunlong committed Dec 17, 2022
1 parent 97ccc89 commit 43fb18f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,9 @@ import { usePrism } from 'next-prism'
import 'next-prism/themes/tomorrow.css'

// Import line-numbers source
import 'next-prism/plugins/line-numbers/line-numbers';
import 'next-prism/plugins/line-numbers/line-numbers'
// Import line-numbers.css
import 'next-prism/plugins/line-numbers/line-numbers.css';
import 'next-prism/plugins/line-numbers/line-numbers.css'

export default function App() {
const { Code } = usePrism()
Expand Down Expand Up @@ -799,16 +799,16 @@ import { usePrism } from 'next-prism'
import 'next-prism/themes/tomorrow.css'

// Import show-invisibles source
import 'next-prism/plugins/show-invisibles/show-invisibles';
import 'next-prism/plugins/show-invisibles/show-invisibles'
// Import show-invisibles.css
import 'next-prism/plugins/show-invisibles/show-invisibles.css';
import 'next-prism/plugins/show-invisibles/show-invisibles.css'

export default function App() {
const { Code } = usePrism()

return (
<>
<Code language='javascript' lineNumbers={true}>
<Code language='javascript'>
{`<div className="example">
{Math.random()}
</div>`}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-prism",
"version": "0.4.0",
"version": "0.4.1",
"description": "A lightweight, robust, and elegant syntax highlighting component for your next React apps.",
"author": "Bunlong <bunlong.van@gmail.com>",
"license": "MIT",
Expand Down

0 comments on commit 43fb18f

Please sign in to comment.