Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed Sep 18, 2022
1 parent 700cb4f commit a02528b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ const decodeHtml = require("html-encoder-decoder").decode
* })
* ```
*
*
* If you want to disable language [auto detection](https://highlightjs.org/usage/)
* feature of hljs, change `auto_detection` flag as `false`. With this option
* turned off, `showdown-highlight` will not process any codeblocks with no
* language specified.
*
* ```js
* let converter = new showdown.Converter({
* extensions: [showdownHighlight({ auto_detection: false })]
* })
* ```
*
* @name showdownHighlight
* @function
*/
Expand Down

0 comments on commit a02528b

Please sign in to comment.