Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extend with new/custom directives/roles/plugins #17

Open
rowanc1 opened this issue Nov 11, 2021 · 0 comments
Open

How to extend with new/custom directives/roles/plugins #17

rowanc1 opened this issue Nov 11, 2021 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@rowanc1
Copy link
Member

rowanc1 commented Nov 11, 2021

Currently this is a dictionary that you pass in to the markdown-it plugin, and if you extend the options, you have to copy all default plugins into the dict.

Other ways to do this could be extending through a setup class/function.

function setup(app: Docutils) {
    app.addDirective('coolDirective', directive)
}

This is similar to how Sphinx works, and would be a layer above markdown-it.

@rowanc1 rowanc1 added enhancement New feature or request question Further information is requested labels Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant