Skip to content
Permalink
Browse files

added @asmeurer explanation about highlight.js

  • Loading branch information
ralsina committed May 5, 2015
1 parent 2bbc7ea commit 41d497310a1306e2a9a3299e73f843313ecd2db3
Showing with 11 additions and 0 deletions.
  1. +11 −0 v7/commonmark/README.md
@@ -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.
You can’t perform that action at this time.