executablebooks / markdown-it-docutils

A markdown-it plugin for implementing docutils style roles/directives.
https://executablebooks.github.io/markdown-it-docutils/
MIT License
12 stars 8 forks source link

Change non-fatal directive parsing errors to warnings #45

Open rowanc1 opened 1 year ago

rowanc1 commented 1 year ago

From https://github.com/executablebooks/MyST-Parser/pull/682

For non-fatal errors, such as; faulty options syntax, unknown option keys, and invalid option values, a warning is raised, but the directive is still run (without the erroneous options). The warning is given the myst.directive_parse type, which can be suppressed.

We should adopt a similar approach here.