rst2ansi is a Python library designed to convert reStructuredText (RST) documents into ANSI-decorated strings suitable for display in a terminal. The current version is 0.1.5, released in 2016. The project appears to be in maintenance mode with infrequent updates and known compatibility issues with newer dependencies.
pip install rst2ansiVerified import paths — ran on the pinned version, not inferred.
Converts a reStructuredText string to an ANSI-decorated console output, allowing for styled text in the terminal.
To resolve this, pin your `docutils` dependency to an older, compatible version (e.g., `docutils<0.19` or `docutils<0.22.3`). Alternatively, consider applying the unmerged patch from GitHub Pull Request #19 on the rst2ansi repository if you require a newer docutils version and are comfortable with manual patching.
Be aware that the project may not receive future updates or bug fixes. If active development, broad compatibility with modern Python environments, or prompt issue resolution are critical, evaluate alternative libraries for reStructuredText rendering or ANSI formatting.