diff options
author | Daniel Gottlieb <danny.gottlieb@gmail.com> | 2011-12-27 16:44:02 -0500 |
---|---|---|
committer | Daniel Gottlieb <danny.gottlieb@gmail.com> | 2011-12-27 16:44:02 -0500 |
commit | da6f050f64b54cf81659107f24c1977fc5226cfb (patch) | |
tree | 1a09fe1a8711af3d77ab1b719b93f5dbf6d58ce4 /markdown/extensions/fenced_code.py | |
parent | 5adec8b440ffc2934ee7120308f7e6e9d27b6e74 (diff) | |
download | markdown-da6f050f64b54cf81659107f24c1977fc5226cfb.tar.gz markdown-da6f050f64b54cf81659107f24c1977fc5226cfb.tar.bz2 markdown-da6f050f64b54cf81659107f24c1977fc5226cfb.zip |
appropriately move the tests to the fenced code documentation in the extension source
Diffstat (limited to 'markdown/extensions/fenced_code.py')
-rw-r--r-- | markdown/extensions/fenced_code.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/markdown/extensions/fenced_code.py b/markdown/extensions/fenced_code.py index 87cdfc8..5a50ba3 100644 --- a/markdown/extensions/fenced_code.py +++ b/markdown/extensions/fenced_code.py @@ -49,7 +49,17 @@ Language tags: <pre><code class="python"># Some python code </code></pre> -Optionally backticks instead of tildes as per how github's code block markdown is identified. +Optionally backticks instead of tildes as per how github's code block markdown is identified: + + >>> text = ''' + ... ````` + ... # Arbitrary code + ... ~~~~~ # these tildes will not close the block + ... `````''' + >>> print markdown.markdown(text, extensions=['fenced_code']) + <pre><code># Arbitrary code + ~~~~~ # these tildes will not close the block + </code></pre> Copyright 2007-2008 [Waylan Limberg](http://achinghead.com/). |