Skip to content

[Feature request] Permit custom extras #382

@JeffAbrahamson

Description

@JeffAbrahamson

It would be quite helpful to have an interface to add custom extras (not necessarily all extras) as needed.

For example, we use markdown2 with django, and we'd like to permit editors to insert certain types of buttons into their text. With static templates, we use the django template tags feature.

It would be great to be able to define a syntax for ourselves, such as [[button:text]]((button link)) that we could expand to some rather complicated bit of html.

A related use is internal links, where we'd like to do [[internal:text]]((link)) for an internal link that works with django's url system.

These are use cases that I don't think merit library distribution, but if there were a hook system so that we could declare a custom filter, this would be quite useful.

Our work-around is to post-process the entire string coming out of markdown2, which isn't hideous but could be better if markdown2 supported some sort of filters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureFeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions