Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
mention setOptions/highlight in the README (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jun 1, 2015
1 parent bce0fec commit ef41669
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ marked.setOptions({
```

you can also set an option `highlight` with a function to handle syntax highlighting for code blocks.
Some Meteor syntax highlighting smart packages do this integration for you automatically.
Some Meteor syntax highlighting smart packages do this integration for you automatically.

e.g.

```js
marked.setOptions({
highlight: function (code) { return hljs.highlightAuto(code).value; }
});
```

0 comments on commit ef41669

Please sign in to comment.