Skip to content

Commit 41d4973

Browse files
committedMay 5, 2015
added @asmeurer explanation about highlight.js
1 parent 2bbc7ea commit 41d4973

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎v7/commonmark/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ plugins can be used on one site, provided that file extensions differ.
1515
This plugin **does not** support MarkdownExtension plugins. They are only
1616
compatible with the `markdown` plugin and `python-markdown`.
1717

18+
For syntax highlighting you can use [highlight.js](https://highlightjs.org/usage/) by
19+
adding it in your configuration file:
20+
21+
````
22+
BODY_END += """
23+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/styles/default.min.css">
24+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
25+
<script>hljs.initHighlightingOnLoad();</script>
26+
"""
27+
````
28+
1829
[pypi]: https://pypi.python.org/pypi/CommonMark
1930
[spec]: http://commonmark.org/
2031
[md]: http://daringfireball.net/projects/markdown/

0 commit comments

Comments
 (0)
Please sign in to comment.