Re: Suppress warnings from all non-existing directives/roles
Guenter Milde <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 2015-08-11, Vinicius Kwiecien Ruoso wrote: > Hi all, > I'm looking for a way to read a reST file with non-standard > directives/roles and suppress its error/warning messages. The ideia is > to not generate error **only** when those non-existing > directives/roles appear, but continue to report errors about other > matters. AFAIK, this is not possible without changes/additions. The simplest method would be to add/register "mock" directives in a custom wrapper, using either a sensible fallback from the existing directives or "mock" directive functions. See http://docutils.sourceforge.net/docs/howto/rst-directives.html Günter ------------------------------------------------------------------------------ _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.