Skip to content

Commit

Permalink
added @asmeurer explanation about highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed May 5, 2015
1 parent 2bbc7ea commit 41d4973
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions v7/commonmark/README.md
Expand Up @@ -15,6 +15,17 @@ plugins can be used on one site, provided that file extensions differ.
This plugin **does not** support MarkdownExtension plugins. They are only
compatible with the `markdown` plugin and `python-markdown`.

For syntax highlighting you can use [highlight.js](https://highlightjs.org/usage/) by
adding it in your configuration file:

````
BODY_END += """
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
"""
````

[pypi]: https://pypi.python.org/pypi/CommonMark
[spec]: http://commonmark.org/
[md]: http://daringfireball.net/projects/markdown/

0 comments on commit 41d4973

Please sign in to comment.