Contents Introduction Table Of Contents CodeHilite - Code Blocks With Line Numbers Extra - Footnotes Extra - Abbreviations Extra - Definition Lists Smartypants Admonitions This is a continuation of the previous cheat sheet for my website. This article specifically addresses any extensions that are not part of the base Markdown specification.
Each section here represents an extension that I have enabled on my website. The formatting from the previous page is continued, with one small exception. The title of each section specifies the name of the extension instead of the name of the feature being documented (see Admonitions). If an extension contains more than one feature, such as the Extra extension, the title specifies the name of the extension, a dash, and the name of the feature (see Footnotes).
Introduction The authors of the Python Markdown Package anticipated the addition of extra features. To ensure people would have choice, the base package can be extended using configuration.
The Markdown extensions have been activated on my website by inserting the following text into my peliconconf.py:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 MARKDOWN = { ‘extension_configs’: { ‘markdown.extensions.extra’: {}, ‘markdown.extensions.admonition’: {}, ‘markdown.extensions.codehilite’: { ‘css_class’: ‘highlight’ }, ‘markdown.extensions.meta’: {}, ‘smarty’ : { ‘smart_angled_quotes’ : ‘true’ }, ‘markdown.extensions.toc’: { ‘permalink’: ‘true’ }, } } Table Of Contents [TOC] Introduction Table Of Contents CodeHilite - Code Blocks With Line Numbers Extra - Footnotes Extra - Abbreviations Extra - Definition Lists Smartypants Admonitions CodeHilite - Code Blocks With Line Numbers
1 | # Code goes here ...
|
1 # Code goes here … Extra - Footnotes Here’s a simple footnote,1 and here’s a longer one.2
Extra - Abbreviations The HTML specification is maintained by the W3C.
The HTML specification is maintained by the W3C.
- Extra - Definition Lists
- Apple
- Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
Note
You should note that the title will be automatically capitalized.
Note
You should note that the title will be automatically capitalized.
Replacement Title
You should note that the default title will be replaced.
Replacement Title
You should note that the default title will be replaced.
Hint
You should note that the title will be automatically capitalized.
Hint
You should note that the title will be automatically capitalized.
Replacement Title
You should note that the default title will be replaced.
Replacement Title
You should note that the default title will be replaced.
Warning
You should note that the title will be automatically capitalized.
Warning
You should note that the title will be automatically capitalized.
Replacement Title
You should note that the default title will be replaced.
Replacement Title
You should note that the default title will be replaced.
You should note that this will have no title due to the empty title.
You should note that this will have no title due to the empty title.
Danger
You should note that the title will be automatically capitalized.
Danger
You should note that the title will be automatically capitalized.
Replacement Title
You should note that the default title will be replaced.
Replacement Title
You should note that the default title will be replaced.
This is the first footnote. ↩
Here’s one with multiple paragraphs and code. ↩