rst2ansi

0.1.5 · maintenance · verified Thu Apr 16

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.

Common errors

Warnings

Install

Imports

Quickstart

Converts a reStructuredText string to an ANSI-decorated console output, allowing for styled text in the terminal.

from rst2ansi import rst2ansi

rst_text = """
Heading
=======

This is **bold** and *italic* text.

* List item 1
* List item 2
"""

print(rst2ansi(rst_text))

view raw JSON →