Skip to content

Consider how users can extend roles/directives #45

@agoose77

Description

@agoose77

Context

If a user wants to add a custom role or directive, I think they would need to inject these definitions into the list of roles / directives that the markdown-it-docutils plugin accepts in the options argument. This may not be very easy - the options can be modified from JupyterLab, but to pass in JS objects would require some extension to set these options.

Proposal

Perhaps it would be better to expose a token from jupyterlab-myst that lets users write extensions to provide their own roles / directives. These extensions could be authored using https://github.com/jupyterlab/jupyterlab-plugin-playground to make it easy to play around with them from JupyterLab.

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions