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 initrich-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.
include and literalinclude resolve symlinks before checking that paths stay inside the source document's directory.
Absolute and ../ paths are no longer accepted, preventing arbitrary local file reads.
The default handling for force_color changes from None to False.
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.
New APIs and options 26
The parsed-literal directive is supported and keeps inline markup inside the literal block.
Sidebar subtitles are supported through :subtitle:.
Adds a flag to enable debug logging for troubleshooting parsing and rendering issues.
Adds -S as a short flag for HTML export, allowing commands such as rich-rst file.rst -S out.html.
Adds handlers for compound and inline nodes.
Dedicated docinfo node handlers apply bibliographic field transforms.
Adds a handler for the figure directive.
Adds the flat-table directive with visual cell merging using cspan and rspan.
Adds support for hlist columns.
Adds the CLI --html-theme option.
Adds support for the include directive.
JavaScript descriptor titles receive highlighting.
Adds support for the literalinclude directive.
Adds the CLI --output option.
Adds an API for registering visitors.
Adds HTML rendering support.
Adds an API to render output to a string.
Adds SVG rendering support.
Adds full support for Sphinx directives and roles.
RST grid and simple tables render as rich.Table.
Adds hierarchy support for toctree rendering.
Adds Unicode math rendering support.
Adds a handler that displays abbreviation expansions inline.
Adds a handler that displays acronym expansions inline.
Adds a handler that renders footnote references as inline [N] markers.
Adds a visitor decorator API.
Performance 1
Reduces large-document render latency by caching visitor dispatch and table width computations.
Behavior and default changes 9
Docinfo tables have a title, author lists render as lists, and inline markup in field values is preserved.
A math block's :label: appears in the panel title.
Python domain attribute, property, and data entries show their :type: and :value: in the title.
Errors now use structured, color-formatted output with paths, reasons, suggestions, and improved exception context and recovery hints.
Admonitions are compact, and trailing colons are removed from titles.
Expands support for C, C++, and JavaScript Sphinx roles.
Compact admonitions can render inline.
List rendering now supports unlimited recursive nesting and arbitrary child elements.
Nested blockquote depth is represented in rendering.
Tooling 1
Adds a dev extra containing ruff, mypy, and pre-commit, installable with pip install -e ".[dev]".
Fixes and other changes 22
Admonitions with background colors now fill the panel body, and their content no longer inherits the panel's style.
The :class: option is no longer ignored by epigraph, highlights, and pull-quote.
Headers and footers preserve inline markup and support |page| substitutions.
Man pages are no longer generated in the wrong section.
Extra blank lines at the end of admonitions and other panels are fixed.
Details of Python domain objects render as a plain list instead of a table.
Extra blank lines at the end of table-of-contents lists are fixed.
Removes the self-reference to the rich_rst package from the docs extra.
Fixes incorrect rendering for bullet lists.
Admonition bodies retain inline markup through recursive visitor rendering.
The contents directive renders as a titled panel with a populated table of contents.
Captions for csv-table directives now render.
Enumerated list rendering now handles start index, enumtype, and prefix/suffix.
Fixes post-merge bugs in flat-table cspan/rspan rendering.
Inline markup is preserved during rendering.
Intra-header row separators now render with heavy box characters.
Nested line-block indentation is no longer silently flattened.
Captions for list-table directives now render.
Fixes rowspan column placement, colspan headers, and inline markup rendering in table cells.
The topic directive renders as a titled panel with a populated table of contents.
The directive body no longer leaks into the panel title.
The directive body no longer leaks into the panel title.
rich-rst 11 changes
New APIs and options 1
Adds support for most of the elements possible.