This is a testing page for the various extensions shipped with python-markdown.
Extra
The extensions in this sections are bundled in the single extra
extension.
Abbreviations
Extension: abbr
RTFM about HTML
Attributes on HTML elements
Extension: attr_list
Some sentence with link to this paragraph with manually set ID.
Definition lists
Extension: def_list
- HTML
- Hyper Text Markup Language
- RTFM
- Read The Fine Manual
Fenced code blocks
Extension: fenced_code
some simple one-liner
print("python code")
echo "bash code"
Footnotes
Extension: footnotes
Very useful for references.1
Tables
Extension: tables
LED | NAME | FUNCTION | GPIO
-----|-------|-----------|---
D29 | POWER | 3.3VDC | NA
D24 | RF | RADIO Act | GPIO_2
DS4 | WAN | Link/Act | NA
DS14 | LAN1 | Link/Act | NA
DS12 | LAN2 | Link/Act | NA
DS13 | LAN3 | Link/Act | NA
LED | NAME | FUNCTION | GPIO |
---|---|---|---|
D29 | POWER | 3.3VDC | NA |
D24 | RF | RADIO Act | GPIO_2 |
DS4 | WAN | Link/Act | NA |
DS14 | LAN1 | Link/Act | NA |
DS12 | LAN2 | Link/Act | NA |
DS13 | LAN3 | Link/Act | NA |
Admonition
Extension: admonition
Brings rST-style admonitions into Markdown. Turned off for now…
Codehilite
Extension: codehilite
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Meta-Data
Extension: meta
Adds a syntax for defining meta-data for each Markdown document. Usable only from the python script, I use it to retrieve the title for menu and publish date. Other extensions can also make use of this.
Newline to Break
Extension: nl2br
Treat newlines as hard breaks; like StackOverflow and GitHub flavored Markdown do.
Sane lists
Extension: sane_lists
By default, mixing list types is forbidden in Markdown. The following would produce an unordered list. This extension alters the behaviour to make the Markdown syntax less surprising.
- First unordered item.
- Second unordered item.
- First ordered item.
- Second ordered item.
Smarty
Extension: smarty
Converts some ASCII symbols into corresponding HTML entities:
- quotes:
'
and"
into ‚ and „ - ellipses:
...
into … - dashes:
--
and---
into – and —
Table of Contents
Extension: toc
Adds a Table of Contents to a Markdown document. The marker is configurable, defaults to [TOC]
.
WikiLinks
Extension: wikilinks
Not configured and thus turned off for now.