Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Props:

Code snippet that requires syntax highlighting should be passed as children to Highlight component in string format. Language name of code snippet should be specified as className.

```html
```jsx
<Highlight className='language-name-of-snippet'>
{"code snippet to be highlighted"}
</Highlight>
Expand All @@ -61,7 +61,7 @@ This is especially usefull if html with multiple code snippets is generated from

**Warning:** If innerHTML is set to true, make sure the html generated with code snippets is from trusted source.

```html
```jsx
<Highlight innerHTML={true}>
{"html with multiple code snippets"}
</Highlight>
Expand Down