You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,27 @@ console.log(html);
42
42
// <em>this</em> is <strong>easy</strong> to <code>use</code>.
43
43
```
44
44
45
+
### Options
46
+
Snarkdown also accepts an optional `options` object.
47
+
48
+
#### `options.highlight`
49
+
Highlight code blocks when parsed. Accepts a function with the signature `hightlight(code, language)`. Return a highlighted string using the library or your choice.
0 commit comments