aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extensions/footnotes.txt
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2009-03-18 23:29:40 -0400
committerWaylan Limberg <waylan@gmail.com>2009-03-18 23:29:40 -0400
commit70c81659eca814bb037b93c95996210d192e5ca5 (patch)
tree20b523620683e1d3efc30c3049e8a3ea2d9a7eb0 /docs/extensions/footnotes.txt
parente4508b2a767e0679bca71086890998d5e328517d (diff)
downloadmarkdown-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/footnotes.txt')
-rw-r--r--docs/extensions/footnotes.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/docs/extensions/footnotes.txt b/docs/extensions/footnotes.txt
new file mode 100644
index 0000000..7188f44
--- /dev/null
+++ b/docs/extensions/footnotes.txt
@@ -0,0 +1,62 @@
+Footnotes
+=========
+
+Summary
+-------
+
+An extension to Python-Markdown that adds footnote syntax. This extension has
+been included with Python-Markdown since 1.7 and should be available to anyone
+who has a typical install of Python-Markdown.
+
+Syntax
+------
+
+Python-Markdown's Footnote syntax follows the generally accepted syntax of the
+Markdown community at large and almost exactly matches [PHP Markdown Extra][]'s
+implementation of footnotes. The only differences involve a few subtleties in
+the output.
+
+[PHP Markdown Extra]: http://michelf.com/projects/php-markdown/extra/#footnotes
+
+Example:
+
+ Footnotes[^1] have a label[^label] and a definition[^!DEF].
+
+ [^1]: This is a footnote
+ [^label]: A footnote on "label"
+ [^!DEF]: The definition of a footnote.
+
+A footnote definition may contain multiple lines, paragraphs, code blocks,
+blockquotes and most any other markdown syntax. The additional line simply
+must be indented at least an additional four spaces.
+
+ [^1]: The first paragraph of the definition.
+
+ Paragraph two of the definition.
+
+ > A blockquote with
+ > multiple lines.
+
+ a code block
+
+ A final paragraph.
+
+By default, the footnote definitions are placed at the end of the resulting
+HTML document. However, you may want the footnotes in another location within
+the document. Simply place the following text at that location within your
+markdown document (See how to configure this text below):
+
+ ///Footnotes Go Here///
+
+Usage
+-----
+
+From the Python interpreter:
+
+ >>> html = markdown.markdown(text, ['footnotes'])
+
+To configure the place marker for footnote definitions (just be sure not to
+use any existing markdown syntax):
+
+ >>> html = markdown.markdown(text, ['footnotes(PLACE_MARKER=+++my marker+++)'])
+