aboutsummaryrefslogtreecommitdiffstats
path: root/docs/release-2.6.txt
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-01-01 13:25:04 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-01-01 13:25:04 -0500
commit5389174da277ca13f9b430c2cc8db6d011499205 (patch)
treeb158cc4671808a94d240f0ce6dbe2b864b0a5fa5 /docs/release-2.6.txt
parentfef6e285d28e25cf4acb93f0ef470fd690507cfa (diff)
downloadmarkdown-5389174da277ca13f9b430c2cc8db6d011499205.tar.gz
markdown-5389174da277ca13f9b430c2cc8db6d011499205.tar.bz2
markdown-5389174da277ca13f9b430c2cc8db6d011499205.zip
HeaderId Extension marked as Pending Deprecation.
Use the Table of Contents Extension instead. The HeaderId Extension will raise a PendingDeprecationWarning. The last few features of the HeaderID extension were mirgrated to TOC including the baselevel and separator config options. Also, the marker config option of TOC can be set to an empty string to disable searching for a marker. The `slugify`, `unique` and `stashedHTML2text` functions are now defined in the TOC extension in preperation for the HeaderId extension being removed. All coresponding tests are now run against the TOC Extension. The meta-data support of the HeaderId Extension was not migrated and no plan exists to make that migration. The `forceid` config option makes no sense in the TOC Extension and the only other config setting supported by meta-data was the `header_level`. However, as that depends on the template, it makes more sense to not be defined at the document level.
Diffstat (limited to 'docs/release-2.6.txt')
-rw-r--r--docs/release-2.6.txt43
1 files changed, 35 insertions, 8 deletions
diff --git a/docs/release-2.6.txt b/docs/release-2.6.txt
index 0724700..23fdfdd 100644
--- a/docs/release-2.6.txt
+++ b/docs/release-2.6.txt
@@ -96,6 +96,19 @@ Backwards-incompatible Changes
be used instead. See the [documentation](reference.html#extension-configs)
for a full explaination of the current behavior.
+* The [HeaderId][hid] Extension is pending deprecation and will raise a
+ **`PendingDeprecationWarning`** in version 2.6. The extension will be
+ deprecated in version 2.7 and raise an error in version 2.8. Use the
+ [Table of Contents][TOC] Extension instead, which offers most of the
+ features of the HeaderId Extension and more (support for meta data is missing).
+
+ Extension authors who have been using the `slugify` and `unique` functions
+ defined in the HeaderId Extension should note that those functions are now
+ defined in the Table of Contents extension and should adjust their import
+ statements accordingly (`from markdown.extensions.toc import slugify, unique`).
+
+[hid]: extensions/headerid.html
+
What's New in Python-Markdown 2.6
---------------------------------
@@ -110,15 +123,29 @@ What's New in Python-Markdown 2.6
[Meta-Data]: extensions/meta_data.html
[YAML]: http://yaml.org/
-* The [TOC] Extension has been refactored. Significantly, the extension now
- assigns the Table of Contents to the `toc` attrbibute of the Markdown class
- regardless of whether a "marker" was found in the document. Third party
- frameworks no longer need to insert a "marker," run the document through
- Markdown, then extract the TOC from the document.
+* The [Table fo Contents][TOC] Extension has been refactored and some new features
+ have been added. See the documentation for a full explaination of each feature
+ listed below:
+
+ * The extension now assigns the Table of Contents to the `toc` attribute of
+ the Markdown class regardless of whether a "marker" was found in the document.
+ Third party frameworks no longer need to insert a "marker," run the document
+ through Markdown, then extract the TOC from the document.
- Additionaly, the TOC Extension is now a "registered extension." Therefore,
- when the `reset` method of the Markdown class is called, the `toc` attribute
- on the Markdown class is cleared (set to an empty string).
+ * The TOC Extension is now a "registered extension." Therefore, when the `reset`
+ method of the Markdown class is called, the `toc` attribute on the Markdown
+ class is cleared (set to an empty string).
+
+ * When the `marker` config option is set to an empty string, the parser completely
+ skips the process of searching the document for markers. This should save parsing
+ time when the TOC Extension is being used only to assign ids to headers.
+
+ * A `separator` config option has been added allowing users to override the
+ separator character used by the slugify function.
+
+ * A `baselevel` config option has been added allowing users to set the base level
+ of headers in their documents (h1-h6). This allows the header levels to be
+ automatically adjusted to fit within the hierarchy of an html template.
[TOC]: extensions/toc.html