@@ -15,12 +15,12 @@ actual source files.
15
15
To use an extension, pass it's name to markdown with the `extensions` keyword.
16
16
See the [Library Reference](../reference.html#extensions) for more details.
17
17
18
- markdown.markdown(some_text, extensions=['extra ', 'nl2br'])
18
+ markdown.markdown(some_text, extensions=['footnotes ', 'nl2br'])
19
19
20
20
From the command line, specify an extension with the `-x` option. See the
21
21
[Command Line docs](../cli.html) or use the `--help` option for more details.
22
22
23
- python -m markdown -x extra input.txt > output.html
23
+ python -m markdown -x footnotes -x tables input.txt > output.html
24
24
25
25
Officially Supported Extensions
26
26
-------------------------------
@@ -31,23 +31,57 @@ maintained here and all bug reports should be made to the project. If you
31
31
have a typical install of Python-Markdown, these extensions are already
32
32
available to you.
33
33
34
- * [Extra](extra.html)
35
- * [Abbreviations](abbreviations.html)
36
- * [Attribute Lists](attr_list.html)
37
- * [Definition Lists](definition_lists.html)
38
- * [Fenced Code Blocks](fenced_code_blocks.html)
39
- * [Footnotes](footnotes.html)
40
- * [Tables](tables.html)
41
- * [Smart Strong](smart_strong.html)
42
- * [CodeHilite](code_hilite.html)
43
- * [HTML Tidy](html_tidy.html)
44
- * [HeaderId](header_id.html)
45
- * [Meta-Data](meta_data.html)
46
- * [New Line to Break](nl2br.html)
47
- * [RSS](rss.html)
48
- * [Sane Lists](sane_lists.html)
49
- * [Table of Contents](toc.html)
50
- * [WikiLinks](wikilinks.html)
34
+ ### Markdown Extra
35
+
36
+ You can enable **all** these extensions just as if it was a single
37
+ `extra` extension. Example:
38
+
39
+ markdown.markdown(some_text, extensions=['extra', 'codehilite'])
40
+
41
+ Extension | Name in Python-Markdown
42
+ --------- | -----------------------
43
+ [Abbreviations][] | `abbr`
44
+ [Attribute Lists][] | `attr_list`
45
+ [Definition Lists][] | `def_list`
46
+ [Fenced Code Blocks][] | `fenced_code`
47
+ [Footnotes][] | `footnotes`
48
+ [Tables][] | `tables`
49
+ [Smart Strong][] | `smart_strong`
50
+
51
+ [Abbreviations]: abbreviations.html
52
+ [Attribute Lists]: attr_list.html
53
+ [Definition Lists]: definition_lists.html
54
+ [Fenced Code Blocks]: fenced_code_blocks.html
55
+ [Footnotes]: footnotes.html
56
+ [Tables]: tables.html
57
+ [Smart Strong]: smart_strong.html
58
+
59
+ ### Other extensions
60
+
61
+ There are also some extensions that are not included in Markdown Extra
62
+ but come in the standard Python-Markdown library.
63
+
64
+ Extension | Name in Python-Markdown
65
+ --------- | -----------------------
66
+ [CodeHilite][] | `codehilite`
67
+ [HTML Tidy][] | `html_tidy`
68
+ [HeaderId] | `headerid`
69
+ [Meta-Data] | `meta`
70
+ [New Line to Break] | `nl2br`
71
+ [RSS] | `rss`
72
+ [Sane Lists] | `sane_lists`
73
+ [Table of Contents] | `toc`
74
+ [WikiLinks] | `wikilinks`
75
+
76
+ [CodeHilite]: code_hilite.html
77
+ [HTML Tidy]: html_tidy.html
78
+ [HeaderId]: header_id.html
79
+ [Meta-Data]: meta_data.html
80
+ [New Line to Break]: nl2br.html
81
+ [RSS]: rss.html
82
+ [Sane Lists]: sane_lists.html
83
+ [Table of Contents]: toc.html
84
+ [WikiLinks]: wikilinks.html
51
85
52
86
Third Party Extensions
53
87
----------------------
0 commit comments