diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-05 22:23:52 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-05 22:23:52 -0500 |
commit | 9f6b45f8944a2d91041e941da609e5ac09373e22 (patch) | |
tree | b61016122f7b8d35257b4619f5cb259c202c2498 /docs/release-2.6.txt | |
parent | 75855cdcca179f2a332bddfc4ea7c9730f701360 (diff) | |
download | markdown-9f6b45f8944a2d91041e941da609e5ac09373e22.tar.gz markdown-9f6b45f8944a2d91041e941da609e5ac09373e22.tar.bz2 markdown-9f6b45f8944a2d91041e941da609e5ac09373e22.zip |
Added a 'use_pygments' config option to CodeHilite.
Fixes #386. I'm doing this against my better judgement. The only reason is
that I'm using the HTML format suggested by the HTML5 Spec and will simply
not consider any alternate output. If a JavaScript library requires something
else, to bad. I don't care. That library should support the format
suggested by the spec or I'm not interested in it. If you want something else
then you can create your own extension which does whatever you want.
Diffstat (limited to 'docs/release-2.6.txt')
-rw-r--r-- | docs/release-2.6.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/release-2.6.txt b/docs/release-2.6.txt index 783837e..030d890 100644 --- a/docs/release-2.6.txt +++ b/docs/release-2.6.txt @@ -202,6 +202,18 @@ worked on PyPy for some time, it is now officially supported and tested on PyPy. [TOC]: extensions/toc.html +* The [CodeHilite][ch] Extension has gained a new config option: `use_pygments`. + The option is `True` by default, however, it allows one to turn off Pygments code + highlighting (set to `False`) while preserving the language detection features of + the extension. Note that Pygments language detection is not used as that would 'use + Pygments`. If a language is defined for a code block, it will be assigned to the + `<code>` tag as a class in the manner suggested by the [HTML5 spec][spec] + (alternate output will not be entertained) and might be used by a JavaScript + library in the browser to highlight the code block. + +[ch]: extensions/code_hilite.html +[spec]: http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element + * Test coverage has been improved including running [flake8]. While those changes will not directly effect end users, the code is being better tested which will benefit everyone. |