Docutils Release Notes (original) (raw)

Contact:

grubert@users.sourceforge.net

Maintainer:

docutils-develop@lists.sourceforge.net

Date:

2025-06-17

Revision:

10173

Web site:

https://docutils.sourceforge.io/

Copyright:

This document has been placed in the public domain.

This document summarizes the major changes in previous and upcoming releases. For a more detailed list of changes, please see the Docutils HISTORY.

Contents

Future changes

Command line interface

- COMMAND [OPTIONS] [SOURCE [DESTINATION]]  
+ COMMAND [OPTIONS] [SOURCE [SOURCE2 [...]]]  

Document Tree / Docutils DTD

Writers

Removals

Misc

Release 0.22rc5 (unpublished)

.

Release 0.22rc4 (2025-06-17)

Drop the "name" option of the "target-notes" directive. (Report an error instead of silently ignoring the value.)

New alias "rst-class" for the "class" directive to improve the compatibility with Sphinx.

Release 0.22rc3 (2025-06-10)

New objects

transforms.references.CitationReferences

Mark citation_references as resolved if the backend uses a BibTeX database.

Output changes

manpage:

Do not drop text of internal targets.

Release 0.22rc2 (2025-05-22)

Fix backwards-compatibility problem:

reStructuredText section parsing no longer requiresparsers.rst.states.RSTStateMachine.memo.section_parents(a cache introduced in Docutils 0.22rc1).

Deprecate parsers.rst.states.Struct (obsoleted by types.SimpleNamespace).

Release 0.22rc1 (2025-05-06)

reStructuredText:

Document Tree / Docutils DTD

Configuration changes

Output changes

LaTeX:

Don't wrap references with custom reference_label in a \hyperrefcommand. The "hyperref" package generates hyperlinks for labels by default, so there is no change in the PDF (except for the starred forms like reference_label = \ref*).

Stop requiring "ifthen.sty". Add "ifthen" to the stylesheet setting or replace use of \ifthenelse{\isundefined... with the eTeX primitive \ifdefined.

HTML5:

Unitless image size measures are written as "width" and "hight" values instead of "style" rules. The current behaviour is kept for values with units, so users may specify, e.g. :width: 50px instead of :width: 50 to override CSS stylesheet rules.

manpage:

Don't UPPERCASE section headings.

Handle hyperlink references (see the text_references setting).

null:

The "null" writer output changed from None to the empty string.

publish_string() now returns a bytes or str instance for all writers (as documented).

New objects

parsers.docutils_xml

parser for Docutils XML (e.g., the output of the "xml" writer). Provisional.

Try docutils --parser=xml test/data/multiple-term-definitions.xmlor use the :parser: option of the "include" directive to include an XML file in a rST document.

nodes.Element.validate()

Raise nodes.ValidationError if the element does not comply with the Docutils Document Model. Provisional.

writers.DoctreeTranslator

Generic Docutils document tree translator base class withuri2path() auxiliary method. Provisional.

Removed objects

core.Publisher.setup_option_parser()

internal, obsolete,

frontend.ConfigParser.get_section()

obsoleted by the configparser's "Mapping Protocol Access",

frontend.OptionParser.set_defaults_from_dict()

obsolete,

nodes.Element.set_class()

obsolete, append to Element['classes'] directly,

parsers.rst.directives.tables.CSVTable.decode_from_csv()

not required with Python 3,

parsers.rst.directives.tables.CSVTable.encode_from_csv()

not required with Python 3,

transforms.writer_aux.Compound

not used since Dec 2010,

utils.error_reporting

obsolete in Python 3,

utils.Reporter.set_conditions()

obsolete, set attributes via configuration settings or directly.

Removed localisations

Mistranslations of the "admonition" directive name:

Use "advies" (af), "varsel" (da), "warnhinweis" (de), "aviso" (es), "sciigo" (eo), "annonce" (fr), "avviso" (it), "advies" (nl), "zauważenie" (pl) (introduced in Docutils 0.21) or the English name "admonition".

New files

docutils/parsers/rst/include/html-roles.txt

Standard definition file for additional roles matching HTML tags.

Removed files

tools/rst2odt_prepstyles.py

Obsoleted by writers.odf_odt.prepstyles.

docutils/utils/roman.py

Obsoleted by docutils/utils/_roman_numerals.py

Bugfixes and improvements (see HISTORY).

Release 0.21.2 (2024-04-23)

Release 0.21.1 (2024-04-10)

Add missing metadata files to sdist. No changes to the code.

Release 0.21 (2024-04-09)

Release 0.20.1 (2023-05-17)

Bugfix release. See HISTORY for details.

Release 0.20 (2023-05-04)

Release 0.19 (2022-07-05)

Release 0.18.1 (2021-12-23)

Release 0.18 (2021-10-26)

Release 0.17.1 (2021-04-16)

Release 0.17 (2021-04-03)

Release 0.16 (2020-01-12)

Docutils 0.16.x supports Python 2.7 and Python >= 3.5 natively, without the use of the 2to3 tool.

Release 0.15 (2019-07-20)

Docutils 0.15.x is compatible with Python versions 2.6, 2.7 and 3.3 to 3.5.

Release 0.14 (2017-08-03)

Release 0.13.1 (2016-12-09)

Release 0.12 (2014-07-06)

Small changes only, release current state

Release 0.11 (2013-07-22)

Release 0.10 (2012-12-16)

Docutils 0.10 is compatible with Python versions from 2.4 to 3.2.

Release 0.9.1 (2012-06-17)

Release 0.9 (2012-05-02)

Release 0.8.1 (2011-08-30)

Release 0.8 (2011-07-07)

Internationalization:

Components:

Release 0.7 (2010-07-07)

Components:

General:

Release 0.6 (2009-10-11)

Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6 and convertible to 3.1 code.

Release 0.5 (2008-06-25)

Components:

reStructuredText:

Documentation:

Internationalization:

General:

Release 0.4 (2006-01-09)

Components:

reStructuredText:

Internationalization:

Documentation:

General:

Release 0.3.9 (2005-05-26)

Release 0.3.7 (2004-12-24)

Release 0.3.5 (2004-07-29)