1 .. -*- coding: utf-8 -*-
3 ========================
5 ========================
7 :Contact: grubert@users.sourceforge.net
8 :Maintainer: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
15 This document summarizes the major changes in recent and upcoming releases.
16 For a more detailed list of changes, please see the `Docutils History`_.
18 .. _Docutils History: HISTORY.html
25 * Remove the `handle_io_errors` option from io.FileInput/Output.
26 Used by Sphinx up to version 1.3.1, fixed in 1.3.2 (Nov 29, 2015).
28 * Drop support for Python 2.4 and 2.5.
30 * »Prune« the doctree (no change to the reST input syntax):
32 - "doctest" element -> literal block with "pycon" (python-console)
33 class argument and syntax highlight (like the "code" directive),
34 - special admonitions (note, hint, warning, ...) -> generic "admonition"
35 element with class attribute and auto-generated title.
38 * The default HTML writer "html" with frontend ``rst2html.py`` may change
39 from "html4css1" to "html5".
41 Use `get_writer_by_name('html')` or the rst2html.py_ front end, if you
42 want the output to be up-to-date automatically.
44 Use a specific writer name or front end, if you depend on stability of the
45 generated HTML code, e.g. because you use a custom style sheet or
46 post-processing that may break otherwise.
48 .. _rst2html.py: docs/user/tools.html#rst2html-py
54 * docutils/parsers/rst/:
56 - Added functionality: escaped whitespace in URI contexts.
57 - Consistent handling of all whitespace characters in inline markup
58 recognition. (May break documents that relied on some whitespace
59 characters (NBSP, ...) not to be recognized as whitespace.)
61 * docutils/writers/latex2e/__init__.py
63 - Handle class arguments for block-level elements by wrapping them
64 in a "DUclass" environment. This replaces the special handling for
65 "epigraph" and "topic" elements.
69 - New front-end ``rst2html4.py``.
72 Release 0.13.1 (2016-12-09)
73 ===========================
75 * docutils/writers/html5_polyglot
77 - New HTML writer generating `HTML 5`_.
81 - New front-end ``rst2html5.py``.
83 .. _HTML 5: http://www.w3.org/TR/html5/
85 * languages: persian/farsi (fa) and latvian (la) mappings.
87 * change default base url for :rfc: to http://tools.ietf.org/html/
89 * tables accept widths, a list and align
91 * latex2e: Fix admonition width, remove deprecated options,
92 better tablewidth auto, ...
94 * rst.el: The problem with ``electric-indent-mode`` has been fixed.
97 Release 0.12 (2014-07-06)
98 =========================
100 Small changes only, release current state
103 Release 0.11 (2013-07-22)
104 =========================
108 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
109 - Support embedded aliases within hyperlink references.
110 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
111 language module) before global search.
113 * docutils/parsers/rst/directives/tables.py
115 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
117 * docutils/writers/html4css1/__init__.py
118 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
119 - New setting `stylesheet_dirs` (see above).
121 Now, it is easy to add a custom stylesheet to Docutils' default
122 stylesheet with, e.g., ``--stylesheet_path='html4css1.css, mystyle.css'``
124 Changed behaviour of the default settings:
125 if there is a file ``html4css1.css`` in the working directory of the
126 process at launch, it is used instead of the one provided by Docutils
127 in the writer source directory.
129 - New default for math-output_: ``HTML math.css``.
130 - Avoid repeated class declarations in html4css1 writer
131 (modified version of patch [ 104 ]).
133 .. _math-output: docs/user/config.html#math-output
135 * docutils/writers/latex2e/__init__.py
137 - Drop the simple algorithm replacing straight double quotes with
138 English typographic ones.
139 Activate the SmartQuotes_ transform if you want this feature.
140 - New setting `stylesheet_dirs`: Comma-separated list of directories
141 where stylesheets are found. Used by `stylesheet_path` when expanding
142 relative path arguments.
144 .. _SmartQuotes: docs/user/config.html#smart-quotes
146 * docutils/writers/manpage.py
148 - Fix [3607063] handle lines starting with a period.
149 - Fix option separating comma was bold (thanks to Bill Morris).
151 Release 0.10 (2012-12-16)
152 =========================
156 Docutils 0.9.x is the last version supporting Python 2.3.
158 Docutils 0.10 is compatible with Python versions from 2.4 to 3.2
159 (cf. `Python 3 compatibility`_).
163 - SmartQuotes transform for typographic quotes and dashes.
165 - ``docutils/math``, ``docutils/error_reporting.py``, and
166 ``docutils/urischemes.py`` moved to the utils package.
167 Code importing these modules needs to adapt, e.g.::
170 import docutils.math as math
172 import docutils.utils.math as math
174 - enhanced math and error handling.
178 - FileInput/FileOutput: no system-exit on IOError.
179 The `handle_io_errors` option is ignored.
181 .. _Python 3 compatibility: README.html#python-3-compatibility
183 * docutils/writers/html4css1/__init__.py
185 - Use ``<code>`` tag for inline "code",
186 do not drop nested inline nodes (syntax highlight tokens).
187 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
188 - No line break after opening inline math tag.
190 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
192 - Fix section numbering by LaTeX.
194 * docutils/writers/s5_html/__init__.py
196 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
199 Release 0.9.1 (2012-06-17)
200 ==========================
204 Several fixes for Python 3 usage.
208 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
209 installed in the PYTHONPATH. Converted tests are now
210 stored in ``docutils/test3/``, tools no longer need conversion.
212 If you installed one of Docutils versions 0.7 ... 0.9 with
213 ``setup.py install`` under Python 3, remove the spurious
214 ``test/`` and ``tools/`` directories in the site library root.
217 Release 0.9 (2012-05-02)
218 =========================
222 - reStructuredText "code" role and directive with syntax highlighting
224 - "code" option of the "include" directive.
226 .. _Pygments: http://pygments.org/
228 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
229 characters and "international" quotes around inline markup.
231 - Fix handling of missing stylesheets.
235 - Fix [ 2971827 ] and [ 3442827 ]
236 extras/roman.py moved to docutils/utils/roman.py
238 * docutils/utils.py -> docutils/utils/__init__.py
240 - docutils.utils is now a package (providing a place for sub-modules)
242 * docutils/writers/html4css1/__init__.py
244 - change default for `math-output` setting to MathJax
246 * docutils/writers/latex2e/__init__.py
248 - Support the `abbreviation` and `acronym` standard roles.
249 - Record only files required to generate the LaTeX source as dependencies.
250 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
251 when suppressing LaTeX section numbering.
254 Release 0.8.1 (2011-08-30)
255 ==========================
259 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
260 and [ 3395920 ] (correct copyright info for rst.el).
262 * docutils/writers/latex2e/__init__.py
264 - Clean up Babel language setting. Restores Sphinx compatibility.
267 Release 0.8 (2011-07-07)
268 ========================
272 - Some additions to the Docutils core are released under the 2-Clause BSD
277 - Handle language codes according to `BCP 47`_.
278 - If the specified langauage is not supported by Docutils,
279 warn and fall back to English.
280 - Math support: reStructuredText "math" role and directive,
281 ``math`` and ``math_block`` doctree elements.
282 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
284 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
288 - most directives now support a "name" option that attaches a
289 reference name. So you can write ::
291 .. figure:: image.png
294 as a short form of ::
298 .. figure:: image.png
300 Internationalization:
302 * Added lithuanian mappings.
308 - New setting "math-output" with support for HTML, MathML, and LaTeX.
312 - Convert image URI to a local file path.
313 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
314 has more than one paragraph (Wolfgang Scherer).
318 - New writer generating LaTeX code for compiling with ``xelatex``.
320 XeTeX uses unicode and modern font technologies.
322 * and fixes and enhancements here and there.
325 Release 0.7 (2010-07-07)
326 ========================
332 - Support SVG and SWF images (thanks to Stefan Rank).
333 - Generate valid XHTML for centered images with targets.
334 Use CSS classes instead of "align" tags for image alignment.
338 - Use the ``\url`` command for URLs (breaks long URLs instead of writing
340 - Preserve runs of spaces in 'inline literals'.
341 - Deprecate ``figure_footnotes`` setting.
342 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
343 - New ``latex_preamble`` setting.
344 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
345 - `hyperref` package called with ``unicode`` option (see the
346 `hyperref config tips`__ for how to override).
347 - Drop the special `output_encoding`__ default ("latin-1").
348 The Docutils wide default (usually "UTF-8") is used instead.
350 __ docs/user/config.html#docutils-footnotes
351 __ docs/user/latex.html#hyperlinks
352 __ docs/user/latex.html#output-encoding
356 - Titles level 1, that is ``.SH``, always uppercase.
357 - Apply patch from mg: literal text should be bold in man-pages.
361 * io.FileInput opens files as text files with universal newline support
362 (mode "rU", configurable with the new optional argument "mode").
366 - Python 3 support: copy test/ and tools/ to the build-dir
367 and convert Python sources with 2to3.
370 Release 0.6 (2009-10-11)
371 ========================
375 Docutils 0.5 is the last version supporting Python 2.2.
377 Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
378 and convertible to 3.1 code.
382 The "newlatex" writer is orphaned.
384 The recommended way to generate PDF output is to use either the
385 LaTeX2e writer or one of the alternatives listed at
386 http://docutils.sourceforge.net/docs/user/links.html#pdf.
390 - Allow length units for all length specifications.
391 - Allow percent sign in "scale" argument of "figure" and "image" directives.
392 - Bugfix: The "figalign" argument of a figure now works as intended
393 (aligning the figure not its contents).
394 - Align images with class "align-[right|center|left]"
395 (allows setting the alignment of an image in a figure).
396 - Hard tabs in literal inclusions are replaced by spaces. This is
397 configurable via the new "tab-width" option of the "include" directive
398 (a negative tab-width prevents tab expansion).
402 - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
403 separated list of stylesheets.
408 - font-encoding: "T1" (formerly implicitely set by 'ae').
409 - use-latex-toc: true (ToC with page numbers).
410 - use-latex-footnotes: true (no mixup with figures).
411 - Float placement defaults to "here definitely" (configurable).
412 - Align of image in a figure defaults to 'center'.
413 - Use class defaults for page margins ('typearea' now optional).
414 - Support LaTeX packages as ``--stylesheet`` arguments.
415 - Use ``bp`` for lengths without unit or unit ``pt``,
416 do not convert ``px`` to ``pt``.
417 - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
418 - Set sub- and superscript role argument as text not math.
419 - Support custom roles based on standard roles.
420 - Load packages and define macros only if required in the document.
421 - All Docutils specific LaTeX macros are prefixed with ``DU``.
422 - Better conformance to Docutils specifications with "use_latex_toc".
423 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
424 section numbering by LaTeX.
425 - Use default font in admonitions and sidebar.
426 - Typeset generic topic as "quote with title".
427 - Use template (file and configuration option).
428 - Render doctest blocks as literal blocks (indented).
432 - moved from sandbox to Doctutils core.
436 - moved from sandbox to Doctutils core.
439 Release 0.5 (2008-06-25)
440 ========================
446 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
447 universally supported now).
451 - Better bibTeX citation support.
452 - Add ``--literal-block-env``
456 - Changed to support new python.org website structure and
461 * Changed the directive API to a new object-oriented system.
462 (Compatibility for the old, functional-style directive interface is
463 retained.) See the updated `Creating reStructuredText Directives`__
466 __ docs/howto/rst-directives.html
468 * Allow ``+`` and ``:`` in reference names requested for citations.
472 * Added `Deploying Docutils Securely`__
474 __ docs/howto/security.txt
476 Internationalization:
478 * Added hebrew mappings.
482 * Configuration files are now assumed and required to be
485 * Added docutils/writers/html4css1/template.txt.
487 * Enhance emacs support.
490 Release 0.4 (2006-01-09)
491 ========================
495 Docutils 0.4.x is the last version that will support Python 2.1.
496 Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
497 or later will be required.
499 Docutils 0.4.x is the last version that will make compromises in
500 its HTML output for Netscape Navigator 4. Docutils 0.5 will
501 require more up-to-date browsers (the exact definition is to be
506 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
507 multi-platform, multi-browser HTML slide shows.
509 __ docs/user/slide-shows.html
510 __ docs/user/tools.html#rst2s5-py
512 * The newlatex2e writer is nearing completion.
514 * Added a DocTree reader, ``publish_doctree`` and
515 ``publish_from_doctree`` convenience functions, for document tree
516 extraction and reprocessing.
520 * Added directives: "container__" (generic block-level container),
521 "default-role__" (role used for \`backtick\` syntax), "title__"
522 (document title metadata), and "date__" (generate the current local
523 date, for substitution definitions).
525 __ docs/ref/rst/directives.html#container
526 __ docs/ref/rst/directives.html#default-role
527 __ docs/ref/rst/directives.html#title
528 __ docs/ref/rst/directives.html#date
530 * Length units are now supported for image__ sizes.
532 __ docs/ref/rst/directives.html#image
534 * Added `standard definition files`__ for special characters etc.
536 __ docs/ref/rst/definitions.html
538 Internationalization:
540 * Added Japanese and Simplified Chinese language mappings, and support
541 for double-width CJK-characters in tables and section titles.
545 * Added a `guide for distributors`__ (package maintainers) and a
546 `guide for developers`__.
548 __ docs/dev/distributing.html
549 __ docs/dev/hacking.html
553 * Added significant `Emacs support for reST`__.
555 __ docs/user/emacs.html
557 * Added a `--strip-comments`__ option.
559 __ docs/user/config.html#strip-comments
561 * `--embed-stylesheet`__ is now the default for the HTML writer
562 (rather than --link-stylesheet).
564 __ docs/user/config.html#embed-stylesheet
567 Release 0.3.9 (2005-05-26)
568 ==========================
570 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
572 __ docs/user/config.html#file-insertion-enabled
573 __ docs/user/config.html#raw-enabled
575 * Added `auto-enumerated lists`__.
577 __ docs/ref/rst/restructuredtext.html#enumerated-lists
579 * Added `"header" and "footer"`__ directives.
581 __ docs/ref/rst/directives.html#document-header-footer
583 * Added "list-table__" directive.
585 __ docs/ref/rst/directives.html#list-table
587 * Added support for `section subtitles`__.
589 __ docs/user/config.html#sectsubtitle-xform
591 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
593 __ docs/user/config.html#field-name-limit
594 __ docs/user/config.html#option-limit
596 * Added "cloak_email_addresses__" setting to HTML writer.
598 __ docs/user/config.html#cloak-email-addresses
600 * UTF-8 BOMs are now removed from the input stream.
603 Release 0.3.7 (2004-12-24)
604 ==========================
606 * A special "`line block`__" syntax has been added. (Also see the
607 `quick reference`__.)
609 __ docs/ref/rst/restructuredtext.html#line-blocks
610 __ docs/user/rst/quickref.html#line-blocks
612 * Empty sections are now allowed.
614 * A "raw__" role has been added.
616 __ docs/ref/rst/roles.html#raw
618 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
619 so that they are no longer transformed by LaTeX to en or em dashes.
620 (Please see the FAQ__ for how to represent such dashes.)
622 __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
624 * A `dependency recorder`__ has been added.
626 __ docs/user/config.html#record-dependencies
628 * A directive has been added for `compound paragraphs`__.
630 __ docs/ref/rst/directives.html#compound-paragraph
633 Release 0.3.5 (2004-07-29)
634 ==========================
636 * Improved, extended and reorganized the documentation__.
640 * Added "csv-table__" directive.
642 __ docs/ref/rst/directives.html#csv-table