unstale

pypi / rich-rst

rich-rst

What changed in rich-rst 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

4 breaking1 security27 new APIs and options1 performance9 behavior and defaults1 tooling22 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

rich-rst 264 changes

Breaking changes 4

  • File-reading directives are disabled by default; pass allow_file_access=True or the CLI flag to enable them for trusted markup.

    2.2.0release notes

  • include and literalinclude resolve symlinks before checking that paths stay inside the source document's directory.

    2.2.0release notes

  • Absolute and ../ paths are no longer accepted, preventing arbitrary local file reads.

    2.2.0release notes

  • The default handling for force_color changes from None to False.

    2.1.0release notes

Security 1

  • The fix prevents arbitrary local file reads through raw directives using :file: or :url:; it also covers csv-table and docutils include when sphinx_compat=False.

    2.2.0release notes

New APIs and options 26

  • The parsed-literal directive is supported and keeps inline markup inside the literal block.

    2.2.0release notes

  • Sidebar subtitles are supported through :subtitle:.

    2.2.0release notes

  • Adds a flag to enable debug logging for troubleshooting parsing and rendering issues.

    2.1.0release notes

  • Adds -S as a short flag for HTML export, allowing commands such as rich-rst file.rst -S out.html.

    2.1.0release notes

  • Adds handlers for compound and inline nodes.

    2.0.1release notes

  • Dedicated docinfo node handlers apply bibliographic field transforms.

    2.0.1release notes

  • Adds a handler for the figure directive.

    2.0.1release notes

  • Adds the flat-table directive with visual cell merging using cspan and rspan.

    2.0.1release notes

  • Adds support for hlist columns.

    2.0.1release notes

  • Adds the CLI --html-theme option.

    2.0.1release notes

  • Adds support for the include directive.

    2.0.1release notes

  • JavaScript descriptor titles receive highlighting.

    2.0.1release notes

  • Adds support for the literalinclude directive.

    2.0.1release notes

  • Adds the CLI --output option.

    2.0.1release notes

  • Adds an API for registering visitors.

    2.0.1release notes

  • Adds HTML rendering support.

    2.0.1release notes

  • Adds an API to render output to a string.

    2.0.1release notes

  • Adds SVG rendering support.

    2.0.1release notes

  • Adds full support for Sphinx directives and roles.

    2.0.1release notes

  • RST grid and simple tables render as rich.Table.

    2.0.1release notes

  • Adds hierarchy support for toctree rendering.

    2.0.1release notes

  • Adds Unicode math rendering support.

    2.0.1release notes

  • Adds a handler that displays abbreviation expansions inline.

    2.0.1release notes

  • Adds a handler that displays acronym expansions inline.

    2.0.1release notes

  • Adds a handler that renders footnote references as inline [N] markers.

    2.0.1release notes

  • Adds a visitor decorator API.

    2.0.1release notes

Performance 1

  • Reduces large-document render latency by caching visitor dispatch and table width computations.

    2.0.1release notes

Behavior and default changes 9

  • Docinfo tables have a title, author lists render as lists, and inline markup in field values is preserved.

    2.2.0release notes

  • A math block's :label: appears in the panel title.

    2.2.0release notes

  • Python domain attribute, property, and data entries show their :type: and :value: in the title.

    2.2.0release notes

  • Errors now use structured, color-formatted output with paths, reasons, suggestions, and improved exception context and recovery hints.

    2.1.0release notes

  • Admonitions are compact, and trailing colons are removed from titles.

    2.0.1release notes

  • Expands support for C, C++, and JavaScript Sphinx roles.

    2.0.1release notes

  • Compact admonitions can render inline.

    2.0.1release notes

  • List rendering now supports unlimited recursive nesting and arbitrary child elements.

    2.0.1release notes

  • Nested blockquote depth is represented in rendering.

    2.0.1release notes

Tooling 1

  • Adds a dev extra containing ruff, mypy, and pre-commit, installable with pip install -e ".[dev]".

    2.1.0release notes

Fixes and other changes 22

  • Admonitions with background colors now fill the panel body, and their content no longer inherits the panel's style.

    2.2.0release notes

  • The :class: option is no longer ignored by epigraph, highlights, and pull-quote.

    2.2.0release notes

  • Headers and footers preserve inline markup and support |page| substitutions.

    2.2.0release notes

  • Man pages are no longer generated in the wrong section.

    2.2.0release notes

  • Extra blank lines at the end of admonitions and other panels are fixed.

    2.2.0release notes

  • Details of Python domain objects render as a plain list instead of a table.

    2.2.0release notes

  • Extra blank lines at the end of table-of-contents lists are fixed.

    2.2.0release notes

  • Removes the self-reference to the rich_rst package from the docs extra.

    2.1.0release notes

  • Fixes incorrect rendering for bullet lists.

    2.0.2release notes

  • Admonition bodies retain inline markup through recursive visitor rendering.

    2.0.1release notes

  • The contents directive renders as a titled panel with a populated table of contents.

    2.0.1release notes

  • Captions for csv-table directives now render.

    2.0.1release notes

  • Enumerated list rendering now handles start index, enumtype, and prefix/suffix.

    2.0.1release notes

  • Fixes post-merge bugs in flat-table cspan/rspan rendering.

    2.0.1release notes

  • Inline markup is preserved during rendering.

    2.0.1release notes

  • Intra-header row separators now render with heavy box characters.

    2.0.1release notes

  • Nested line-block indentation is no longer silently flattened.

    2.0.1release notes

  • Captions for list-table directives now render.

    2.0.1release notes

  • Fixes rowspan column placement, colspan headers, and inline markup rendering in table cells.

    2.0.1release notes

  • The topic directive renders as a titled panel with a populated table of contents.

    2.0.1release notes

  • The directive body no longer leaks into the panel title.

    2.0.1release notes

  • The directive body no longer leaks into the panel title.

    2.0.1release notes

rich-rst 11 changes

New APIs and options 1

  • Adds support for most of the elements possible.

    1.0.0release notes