Skip to content

Commit

Permalink
Update api-doc-markdown.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Jun 8, 2018
1 parent adcc5cb commit 38861c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api-doc-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,17 @@ While Highlight.js provides support for [many popular languages out of the box](
}
```

### Using Prism.js as additional syntax highlighter
### Using Prism as additional syntax highlighter

While highlight.js support a lot of languages, you can opt to use prism.js to syntax highlight certain languages available on [Prism](https://github.com/PrismJS/prism/tree/master/components). Include those languages in `usePrism` field in your [siteConfig.js](api-site-config.md)
While highlight.js supports a lot of languages, you can opt to use Prism to syntax highlight certain languages available in the list [here](https://github.com/PrismJS/prism/tree/master/components). Include those languages in `usePrism` field in your [siteConfig.js](api-site-config.md)

Example:
```
// siteConfig.js
usePrism: ['jsx']
```

Notice that below code blocks use JSX syntax highlighting from PrismJS
Notice that the code block below uses JSX syntax highlighting from Prism.

```jsx
class Example extends React.Component {
Expand All @@ -207,4 +207,4 @@ class Example extends React.Component {
);
}
}
```
```

0 comments on commit 38861c0

Please sign in to comment.