module documentation

The `compat` module provides support for backwards compatibility with older versions of Django/Python, and compatibility wrappers around optional packages.

Class CodeBlockPreprocessor Undocumented
Function apply_markdown Simple wrapper around :func:`markdown.markdown` to set the base level of '#' style headers to <h2>.
Function distinct Undocumented
Function md_filter_add_syntax_highlight Undocumented
Function pygments_css Undocumented
Function pygments_highlight Undocumented
Function unicode_http_header Undocumented
Constant HEADERID_EXT_PATH Undocumented
Constant INDENT_SEPARATORS Undocumented
Constant LEVEL_PARAM Undocumented
Constant LONG_SEPARATORS Undocumented
Constant SHORT_SEPARATORS Undocumented
def apply_markdown(text): (source)

Simple wrapper around :func:`markdown.markdown` to set the base level of '#' style headers to <h2>.

def distinct(queryset, base): (source)

Undocumented

def md_filter_add_syntax_highlight(md): (source)

Undocumented

def pygments_css(style): (source)

Undocumented

def pygments_highlight(text, lang, style): (source)

Undocumented

def unicode_http_header(value): (source)

Undocumented

HEADERID_EXT_PATH: str = (source)

Undocumented

Value
'markdown.extensions.toc'
INDENT_SEPARATORS: tuple[str, ...] = (source)

Undocumented

Value
(',', ': ')
LEVEL_PARAM: str = (source)

Undocumented

Value
'baselevel'
LONG_SEPARATORS: tuple[str, ...] = (source)

Undocumented

Value
(', ', ': ')
SHORT_SEPARATORS: tuple[str, ...] = (source)

Undocumented

Value
(',', ':')