Skip to content

DeprecationWarning with markdown #6317

Closed
@blueyed

Description

@blueyed

Code:

def md_filter_add_syntax_highlight(md):
md.preprocessors.add('highlight', CodeBlockPreprocessor(), "_begin")
return True

Warning:

DeprecationWarning: Using the add method to register a processor or pattern is deprecated. Use the register method instead.

Relevant commit in markdown: Python-Markdown/markdown@6ee07d2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions