An example of using the mdx_header markdown plugin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
content
.gitignore
Makefile
ReadMe.md
develop_server.sh
fabfile.py
pelicanconf.py

ReadMe.md

Downheader example project

This is an example pelican project to show how to use the downheader markdown extension. For more information you can go to the mdx_downheader github page.

The default for calling the extension makes all the headers add one to the <h1>-<h6> html tags.

Default settings

MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
        'markdown.extensions.extra': {},
        'markdown.extensions.meta': {},
        'downheader': {},
    },
    'output_format': 'html5',
}

Defining different values

MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
        'markdown.extensions.extra': {},
        'markdown.extensions.meta': {},
        'downheader': {'levels': '2'},
    },
    'output_format': 'html5',
}