Skip to content

Using a local extension with Python-Markdwon #1442

@jdumas

Description

@jdumas

Right now it seems that the only way to use an extension for Python-Markdown with mkdocs is to have it installed somewhere in the python path (usually via pip), and have it recognized as a standard python module.

I would like to be able to use an extension that has no pip package, or write my own without requiring every user to install something on their system.

Would it be possible to add a yaml option to specify a list of local extensions to pass to Python-Markdown? (Either messing with the PYTHONPATH, sys.path.append, or loading the file directly with importlib and passing the user-defined object to markdown.markdown).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions