It would be great if there is a supported way to traverse the generated `DocumentNode` and modify the node structure. The [`docutils.transforms`](https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/transforms/) namespace includes quite some usage of such node visitor, some directly applicable to this library: * Using `PendingNodes` to better handle the `.. class::` directive (see discussion in https://github.com/doctrine/rst-parser/pull/141#discussion_r598263469 ) * Allow auto-numbering sections ([ref](https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/transforms/parts.py#l18)) * Generating table of contents from a document node ([ref](https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/transforms/parts.py#l70))
It would be great if there is a supported way to traverse the generated
DocumentNodeand modify the node structure.The
docutils.transformsnamespace includes quite some usage of such node visitor, some directly applicable to this library:PendingNodesto better handle the.. class::directive (see discussion in alphabetical globs, Directive refactoring & Fixing #141 (comment) )