Skip to content

Commit

Permalink
Fixed Python-Markdown#110. Documented the 'fenced_code' extension's s…
Browse files Browse the repository at this point in the history
…upport for the 'codehilite' extension.
  • Loading branch information
Waylan Limberg committed Jun 28, 2012
1 parent 7cc5ad3 commit 3aad1dd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/extensions/fenced_code_blocks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,25 @@ The above will output:
<pre><code class="html">&lt;p&gt;HTML Document&lt;/p&gt;
</code></pre>

[Github][]'s tilde (`\``) syntax is also supported:

```python
# more python code
```

[Github]: http://github.github.com/github-flavored-markdown/

Usage
-----

From the Python interpreter:

>>> html = markdown.markdown(text, ['fenced_code'])

If you would like to have your fenced code blocks highlighted with the
[CodeHilite][] extension, simply include that extension and the language
of your fenced code blocks will be passed in and highlighted appropriately.

>>> html = markdown.markdown(text, ['fenced_code', 'codehilite'])

[CodeHilite]: code_hilite.html

0 comments on commit 3aad1dd

Please sign in to comment.