Skip to content

An example of using the mdx_header markdown plugin

Notifications You must be signed in to change notification settings

mandaris/pelican-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',
}

About

An example of using the mdx_header markdown plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published