diff options
author | Waylan Limberg <waylan@gmail.com> | 2009-03-18 23:29:40 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2009-03-18 23:29:40 -0400 |
commit | 70c81659eca814bb037b93c95996210d192e5ca5 (patch) | |
tree | 20b523620683e1d3efc30c3049e8a3ea2d9a7eb0 /docs/extensions/extra.txt | |
parent | e4508b2a767e0679bca71086890998d5e328517d (diff) | |
download | markdown-70c81659eca814bb037b93c95996210d192e5ca5.tar.gz markdown-70c81659eca814bb037b93c95996210d192e5ca5.tar.bz2 markdown-70c81659eca814bb037b93c95996210d192e5ca5.zip |
Added documentation for Extra Extension and all the extentions it supports. Still need to do non-extra extensions.
Diffstat (limited to 'docs/extensions/extra.txt')
-rw-r--r-- | docs/extensions/extra.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/extensions/extra.txt b/docs/extensions/extra.txt new file mode 100644 index 0000000..817d58f --- /dev/null +++ b/docs/extensions/extra.txt @@ -0,0 +1,43 @@ +Python-Markdown Extra +===================== + +Summary +------- + +A compilation of various Python-Markdown extensions that (mostly) imitates +[PHP Markdown Extra](http://michelf.com/projects/php-markdown/extra/). + +The supported extensions include: + +* [[Abbreviations]] +* [[Definition_Lists]] +* [[Fenced_Code_Blocks]] +* [[Footnotes]] +* [[HeaderId]] +* [[Tables]] + +See each individual extension for syntax documentation. Extra and all it's +supported extensions are included in the standard Markdown library. + +Usage +----- + +From the Python interpreter: + + >>> import markdown + >>> html = markdown.markdown(text, ['extra']) + +In the unlikely event that one or more of the supported extensions are not +available for import, Markdown will simply continue without that +extension. If you would like to be notified of such failures, +you may set Python-Markdown's logger level to "WARN". + +There may be additional extensions that are distributed with +Python-Markdown that are not included here in Extra. Those extensions +are not part of PHP Markdown Extra, and therefore, not part of +Python-Markdown Extra. If you really would like Extra to include +additional extensions, we suggest creating your own clone of Extra +under a different name (see [[Writing Extensions]]). You could also +edit the `extensions` global variable defined in the source, but be +aware that such changes may be lost when you upgrade to any future +version of Python-Markdown. |