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
#pragma once

#ifndef NDEBUG
#include <TNL/Debugging/FPE.h>
#endif

#include "MainConfig.h"

template< typename ConfigTag >
using ModelsConfigSetter = models::ConfigSetter< ModelsConfigTags >;

int main( int argc, char* argv[] )
{
#ifndef NDEBUG
    TNL::Debugging::trackFloatingPointExceptions();
#endif

    TNL::Solvers::Solver< ModelsTypeResolver, ModelsConfigSetter, MainConfig > solver;
    if( ! solver.run( argc, argv ) )
        return EXIT_FAILURE;
    return EXIT_SUCCESS;
}

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.

  1. First ordered item.
  2. Second ordered item.

Smarty

Extension: smarty

Converts some ASCII symbols into corresponding HTML entities:

Table of Contents

Extension: toc

Adds a Table of Contents to a Markdown document. The marker is configurable, defaults to [TOC].

Extension: wikilinks

Not configured and thus turned off for now.


  1. Simple reference using the footnotes extension.