From d150f911e0079e90ae3c106734c93137c184f932 Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Sat, 7 Dec 2024 10:30:35 -0500 Subject: [PATCH] Prepare to release 2.6.0 --- CHANGELOG.md | 5 +- composer.json | 2 +- docs/2.4/basic-usage.md | 1 - docs/2.4/changelog.md | 1 - docs/2.4/configuration.md | 1 - .../2.4/customization/abstract-syntax-tree.md | 1 - docs/2.4/customization/block-parsing.md | 1 - docs/2.4/customization/configuration.md | 1 - docs/2.4/customization/cursor.md | 1 - .../2.4/customization/delimiter-processing.md | 1 - docs/2.4/customization/environment.md | 1 - docs/2.4/customization/extensions.md | 1 - docs/2.4/customization/inline-parsing.md | 1 - docs/2.4/customization/slug-normalizer.md | 1 - docs/2.4/extensions/attributes.md | 1 - docs/2.4/extensions/autolinks.md | 1 - docs/2.4/extensions/commonmark.md | 1 - docs/2.4/extensions/default-attributes.md | 1 - docs/2.4/extensions/description-lists.md | 1 - docs/2.4/extensions/disallowed-raw-html.md | 1 - docs/2.4/extensions/embed.md | 1 - docs/2.4/extensions/external-links.md | 1 - docs/2.4/extensions/footnotes.md | 1 - docs/2.4/extensions/front-matter.md | 1 - .../extensions/github-flavored-markdown.md | 1 - docs/2.4/extensions/heading-permalinks.md | 1 - docs/2.4/extensions/inlines-only.md | 1 - docs/2.4/extensions/mentions.md | 1 - docs/2.4/extensions/smart-punctuation.md | 1 - docs/2.4/extensions/strikethrough.md | 1 - docs/2.4/extensions/table-of-contents.md | 1 - docs/2.4/extensions/tables.md | 1 - docs/2.4/extensions/task-lists.md | 1 - docs/2.4/installation.md | 1 - docs/2.4/security.md | 1 - docs/2.4/support.md | 1 - docs/2.4/upgrading.md | 1 - docs/2.4/xml.md | 1 - docs/2.5/basic-usage.md | 1 - docs/2.5/changelog.md | 1 - docs/2.5/configuration.md | 1 - .../2.5/customization/abstract-syntax-tree.md | 1 - docs/2.5/customization/block-parsing.md | 1 - docs/2.5/customization/configuration.md | 1 - docs/2.5/customization/cursor.md | 1 - .../2.5/customization/delimiter-processing.md | 1 - docs/2.5/customization/environment.md | 1 - docs/2.5/customization/extensions.md | 1 - docs/2.5/customization/inline-parsing.md | 1 - docs/2.5/customization/slug-normalizer.md | 1 - docs/2.5/extensions/attributes.md | 1 - docs/2.5/extensions/autolinks.md | 1 - docs/2.5/extensions/commonmark.md | 1 - docs/2.5/extensions/default-attributes.md | 1 - docs/2.5/extensions/description-lists.md | 1 - docs/2.5/extensions/disallowed-raw-html.md | 1 - docs/2.5/extensions/embed.md | 1 - docs/2.5/extensions/external-links.md | 1 - docs/2.5/extensions/footnotes.md | 1 - docs/2.5/extensions/front-matter.md | 1 - .../extensions/github-flavored-markdown.md | 1 - docs/2.5/extensions/heading-permalinks.md | 1 - docs/2.5/extensions/inlines-only.md | 1 - docs/2.5/extensions/mentions.md | 1 - docs/2.5/extensions/smart-punctuation.md | 1 - docs/2.5/extensions/strikethrough.md | 1 - docs/2.5/extensions/table-of-contents.md | 1 - docs/2.5/extensions/tables.md | 1 - docs/2.5/extensions/task-lists.md | 1 - docs/2.5/installation.md | 1 - docs/2.5/security.md | 1 - docs/2.5/support.md | 1 - docs/2.5/upgrading.md | 1 - docs/2.5/xml.md | 1 - docs/_data/menu.yml | 47 +++++++++++++++++++ docs/_data/project.yml | 10 ++-- 76 files changed, 58 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9846fe0c97..dd29b5e2dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi ## [Unreleased][unreleased] +## [2.6.0] - 2024-12-07 + This is a **security release** to address potential denial of service attacks when parsing specially crafted, malicious input from untrusted sources (like user input). @@ -675,7 +677,8 @@ No changes were introduced since the previous release. - Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment - Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself -[unreleased]: https://github.com/thephpleague/commonmark/compare/2.5.3...main +[unreleased]: https://github.com/thephpleague/commonmark/compare/2.6.0...main +[2.6.0]: https://github.com/thephpleague/commonmark/compare/2.5.3...2.6.0 [2.5.3]: https://github.com/thephpleague/commonmark/compare/2.5.2...2.5.3 [2.5.2]: https://github.com/thephpleague/commonmark/compare/2.5.1...2.5.2 [2.5.1]: https://github.com/thephpleague/commonmark/compare/2.5.0...2.5.1 diff --git a/composer.json b/composer.json index d74b0b4b11..d20563b97c 100644 --- a/composer.json +++ b/composer.json @@ -115,7 +115,7 @@ }, "extra": { "branch-alias": { - "dev-main": "2.6-dev" + "dev-main": "2.7-dev" } }, "config": { diff --git a/docs/2.4/basic-usage.md b/docs/2.4/basic-usage.md index 9242da35d7..1351694048 100644 --- a/docs/2.4/basic-usage.md +++ b/docs/2.4/basic-usage.md @@ -2,7 +2,6 @@ layout: default title: Basic Usage description: Basic usage of the CommonMark parser -redirect_from: /basic-usage/ --- # Basic Usage diff --git a/docs/2.4/changelog.md b/docs/2.4/changelog.md index 709fb4ec6a..a6a16d678b 100644 --- a/docs/2.4/changelog.md +++ b/docs/2.4/changelog.md @@ -2,7 +2,6 @@ layout: default title: Changelog description: Important changes made in recent releases -redirect_from: /changelog/ --- # Changelog diff --git a/docs/2.4/configuration.md b/docs/2.4/configuration.md index 514e111718..fdcb12e01c 100644 --- a/docs/2.4/configuration.md +++ b/docs/2.4/configuration.md @@ -1,7 +1,6 @@ --- layout: default title: Configuration -redirect_from: /configuration/ --- # Configuration diff --git a/docs/2.4/customization/abstract-syntax-tree.md b/docs/2.4/customization/abstract-syntax-tree.md index ac68256450..8e144b1144 100644 --- a/docs/2.4/customization/abstract-syntax-tree.md +++ b/docs/2.4/customization/abstract-syntax-tree.md @@ -2,7 +2,6 @@ layout: default title: Abstract Syntax Tree description: Using the Abstract Syntax Tree (AST) to manipulate the parsed content -redirect_from: /customization/abstract-syntax-tree/ --- # Abstract Syntax Tree diff --git a/docs/2.4/customization/block-parsing.md b/docs/2.4/customization/block-parsing.md index d569b786cb..cdd61fa129 100644 --- a/docs/2.4/customization/block-parsing.md +++ b/docs/2.4/customization/block-parsing.md @@ -2,7 +2,6 @@ layout: default title: Block Parsing description: How to parse block-level elements -redirect_from: /customization/block-parsing/ --- # Block Parsing diff --git a/docs/2.4/customization/configuration.md b/docs/2.4/customization/configuration.md index aaba4bebb7..afd09fe929 100644 --- a/docs/2.4/customization/configuration.md +++ b/docs/2.4/customization/configuration.md @@ -2,7 +2,6 @@ layout: default title: Configuration description: Defining configuration schemas and accessing user-provided configuration options within your custom extensions -redirect_from: /customization/configuration/ --- # Configuration Schemas and Values diff --git a/docs/2.4/customization/cursor.md b/docs/2.4/customization/cursor.md index 586b98e7ee..bbb6649c54 100644 --- a/docs/2.4/customization/cursor.md +++ b/docs/2.4/customization/cursor.md @@ -2,7 +2,6 @@ layout: default title: Cursor description: Using the Cursor object to parse Markdown content -redirect_from: /customization/cursor/ --- # Cursor diff --git a/docs/2.4/customization/delimiter-processing.md b/docs/2.4/customization/delimiter-processing.md index 8cc80cd399..7ae2411949 100644 --- a/docs/2.4/customization/delimiter-processing.md +++ b/docs/2.4/customization/delimiter-processing.md @@ -2,7 +2,6 @@ layout: default title: Delimiter Processing description: Processing CommonMark delimiter runs with a custom processor -redirect_from: /customization/delimiter-processing/ --- # Delimiter Processing diff --git a/docs/2.4/customization/environment.md b/docs/2.4/customization/environment.md index f7ee76c47c..d5fcd4aa86 100644 --- a/docs/2.4/customization/environment.md +++ b/docs/2.4/customization/environment.md @@ -2,7 +2,6 @@ layout: default title: The Environment description: Configuring the CommonMark environment with custom options and added functionality -redirect_from: /customization/environment/ --- # The Environment diff --git a/docs/2.4/customization/extensions.md b/docs/2.4/customization/extensions.md index d92a2eabe8..9c15c0b3ea 100644 --- a/docs/2.4/customization/extensions.md +++ b/docs/2.4/customization/extensions.md @@ -2,7 +2,6 @@ layout: default title: Extensions description: Creating custom extensions to add new syntax and other custom functionality -redirect_from: /customization/extensions/ --- # Extensions diff --git a/docs/2.4/customization/inline-parsing.md b/docs/2.4/customization/inline-parsing.md index 91ae484f31..c7a753bd4b 100644 --- a/docs/2.4/customization/inline-parsing.md +++ b/docs/2.4/customization/inline-parsing.md @@ -2,7 +2,6 @@ layout: default title: Inline Parsing description: Parsing inline elements with a custom parser -redirect_from: /customization/inline-parsing/ --- # Inline Parsing diff --git a/docs/2.4/customization/slug-normalizer.md b/docs/2.4/customization/slug-normalizer.md index 6054e28172..d268301b9b 100644 --- a/docs/2.4/customization/slug-normalizer.md +++ b/docs/2.4/customization/slug-normalizer.md @@ -2,7 +2,6 @@ layout: default title: Slug Normalizer description: Using the Slug Normalizer to produce unique, URL-safe text strings -redirect_from: /customization/slug-normalizer/ --- # Slug Normalizer diff --git a/docs/2.4/extensions/attributes.md b/docs/2.4/extensions/attributes.md index bd591701c3..7180cd73d4 100644 --- a/docs/2.4/extensions/attributes.md +++ b/docs/2.4/extensions/attributes.md @@ -2,7 +2,6 @@ layout: default title: Attributes Extension description: The AttributesExtension allows HTML attributes to be added from within the document. -redirect_from: /extensions/attributes/ --- # Attributes diff --git a/docs/2.4/extensions/autolinks.md b/docs/2.4/extensions/autolinks.md index ba40fb283d..6b0824115b 100644 --- a/docs/2.4/extensions/autolinks.md +++ b/docs/2.4/extensions/autolinks.md @@ -2,7 +2,6 @@ layout: default title: Autolink Extension description: The Autolink extension automatically converts URLs in plain text to clickable links -redirect_from: /extensions/autolinks/ --- # Autolink Extension diff --git a/docs/2.4/extensions/commonmark.md b/docs/2.4/extensions/commonmark.md index a0bffa621f..b4d86a92c8 100644 --- a/docs/2.4/extensions/commonmark.md +++ b/docs/2.4/extensions/commonmark.md @@ -2,7 +2,6 @@ layout: default title: CommonMark Core Extension description: The CommonMarkCoreExtension class includes all core Markdown syntax -redirect_from: /extensions/commonmark/ --- # CommonMark Core Extension diff --git a/docs/2.4/extensions/default-attributes.md b/docs/2.4/extensions/default-attributes.md index 23600fd103..b6125178bf 100644 --- a/docs/2.4/extensions/default-attributes.md +++ b/docs/2.4/extensions/default-attributes.md @@ -2,7 +2,6 @@ layout: default title: Default Attributes Extension description: The DefaultAttributesExtension allows you to apply default HTML classes and other attributes using configuration options. -redirect_from: /extensions/default-attributes/ --- # Default Attributes diff --git a/docs/2.4/extensions/description-lists.md b/docs/2.4/extensions/description-lists.md index 40c73d7337..a103c434fd 100644 --- a/docs/2.4/extensions/description-lists.md +++ b/docs/2.4/extensions/description-lists.md @@ -2,7 +2,6 @@ layout: default title: Description List Extension description: The Description List extension adds support for Markdown Extra-style
lists -redirect_from: /extensions/description-lists/ --- # Description List Extension diff --git a/docs/2.4/extensions/disallowed-raw-html.md b/docs/2.4/extensions/disallowed-raw-html.md index f8c4e08880..795e00dfcf 100644 --- a/docs/2.4/extensions/disallowed-raw-html.md +++ b/docs/2.4/extensions/disallowed-raw-html.md @@ -2,7 +2,6 @@ layout: default title: Disallowed Raw HTML Extension description: The DisallowedRawHtmlExtension automatically escapes certain HTML tags when rendering raw HTML -redirect_from: /extensions/disallowed-raw-html/ --- # Disallowed Raw HTML Extension diff --git a/docs/2.4/extensions/embed.md b/docs/2.4/extensions/embed.md index 0755d95bc4..05c121992c 100644 --- a/docs/2.4/extensions/embed.md +++ b/docs/2.4/extensions/embed.md @@ -2,7 +2,6 @@ layout: default title: Embed Extension description: The EmbedExtension supports embedding rich content from other websites. -redirect_from: /extensions/embed/ --- # Embed Extension diff --git a/docs/2.4/extensions/external-links.md b/docs/2.4/extensions/external-links.md index 11998fda8b..d89fa9e6dd 100644 --- a/docs/2.4/extensions/external-links.md +++ b/docs/2.4/extensions/external-links.md @@ -2,7 +2,6 @@ layout: default title: External Links Extension description: The ExternalLinksExtension detects external links and adjusts their HTML markup -redirect_from: /extensions/external-links/ --- # External Links Extension diff --git a/docs/2.4/extensions/footnotes.md b/docs/2.4/extensions/footnotes.md index b5ecef547a..6fe3cd9053 100644 --- a/docs/2.4/extensions/footnotes.md +++ b/docs/2.4/extensions/footnotes.md @@ -2,7 +2,6 @@ layout: default title: Footnote Extension description: The FootnoteExtension adds the ability to create footnotes in Markdown documents. -redirect_from: /extensions/footnotes/ --- # Footnotes diff --git a/docs/2.4/extensions/front-matter.md b/docs/2.4/extensions/front-matter.md index dd65f89a1e..b7f037c066 100644 --- a/docs/2.4/extensions/front-matter.md +++ b/docs/2.4/extensions/front-matter.md @@ -2,7 +2,6 @@ layout: default title: Front Matter Extension description: The Front Matter extension automatically parses YAML front matter from your Markdown. -redirect_from: /extensions/front-matter/ --- # Front Matter Extension diff --git a/docs/2.4/extensions/github-flavored-markdown.md b/docs/2.4/extensions/github-flavored-markdown.md index 2c6d8ee730..b797526aac 100644 --- a/docs/2.4/extensions/github-flavored-markdown.md +++ b/docs/2.4/extensions/github-flavored-markdown.md @@ -2,7 +2,6 @@ layout: default title: GitHub-Flavored Markdown description: The GithubFlavoredMarkdownExtension class includes all the GFM addons -redirect_from: /extensions/github-flavored-markdown/ --- # GitHub-Flavored Markdown diff --git a/docs/2.4/extensions/heading-permalinks.md b/docs/2.4/extensions/heading-permalinks.md index c3cbd3b5ef..24c85f2ac8 100644 --- a/docs/2.4/extensions/heading-permalinks.md +++ b/docs/2.4/extensions/heading-permalinks.md @@ -2,7 +2,6 @@ layout: default title: Heading Permalink Extension description: The HeadingPermalinkExtension makes all header elements linkable -redirect_from: /extensions/heading-permalinks/ --- # Heading Permalink Extension diff --git a/docs/2.4/extensions/inlines-only.md b/docs/2.4/extensions/inlines-only.md index 6a2ae0d1cd..6fce9c6677 100644 --- a/docs/2.4/extensions/inlines-only.md +++ b/docs/2.4/extensions/inlines-only.md @@ -2,7 +2,6 @@ layout: default title: Inlines Only Extension description: The InlinesOnlyExtension only enables parsing of inline elements -redirect_from: /extensions/inlines-only/ --- # Inlines Only Extension diff --git a/docs/2.4/extensions/mentions.md b/docs/2.4/extensions/mentions.md index 7231546607..5387870b19 100644 --- a/docs/2.4/extensions/mentions.md +++ b/docs/2.4/extensions/mentions.md @@ -2,7 +2,6 @@ layout: default title: Mention Parser description: The MentionParser makes it easy to parse shortened references like @colinodell and #123 to custom URLs -redirect_from: /extensions/mentions/ --- # Mention Extension diff --git a/docs/2.4/extensions/smart-punctuation.md b/docs/2.4/extensions/smart-punctuation.md index 16b4a41e7c..dc2e02e6e0 100644 --- a/docs/2.4/extensions/smart-punctuation.md +++ b/docs/2.4/extensions/smart-punctuation.md @@ -2,7 +2,6 @@ layout: default title: Smart Punctuation Extension description: The SmartPunctExtension intelligently converts ASCII quotes, dashes, and ellipses to their Unicode equivalents -redirect_from: /extensions/smart-punctuation/ --- # Smart Punctuation Extension diff --git a/docs/2.4/extensions/strikethrough.md b/docs/2.4/extensions/strikethrough.md index 6024eb975f..8f667bdbc5 100644 --- a/docs/2.4/extensions/strikethrough.md +++ b/docs/2.4/extensions/strikethrough.md @@ -2,7 +2,6 @@ layout: default title: Strikethrough Extension description: The StrikethroughExtension intelligently converts ASCII quotes, dashes, and ellipses to their Unicode equivalents -redirect_from: /extensions/strikethrough/ --- # Strikethrough Extension diff --git a/docs/2.4/extensions/table-of-contents.md b/docs/2.4/extensions/table-of-contents.md index 73fed4b16a..6abff7d0db 100644 --- a/docs/2.4/extensions/table-of-contents.md +++ b/docs/2.4/extensions/table-of-contents.md @@ -2,7 +2,6 @@ layout: default title: Table of Contents Extension description: The Table of Contents extension automatically inserts links to the headings in your document. -redirect_from: /extensions/table-of-contents/ --- # Table of Contents Extension diff --git a/docs/2.4/extensions/tables.md b/docs/2.4/extensions/tables.md index a0a4923d57..70ead21ea1 100644 --- a/docs/2.4/extensions/tables.md +++ b/docs/2.4/extensions/tables.md @@ -2,7 +2,6 @@ layout: default title: Table Extension description: The TableExtension adds the ability to create tables in CommonMark documents -redirect_from: /extensions/tables/ --- # Table Extension diff --git a/docs/2.4/extensions/task-lists.md b/docs/2.4/extensions/task-lists.md index ef1fdf919c..e142e3dff5 100644 --- a/docs/2.4/extensions/task-lists.md +++ b/docs/2.4/extensions/task-lists.md @@ -2,7 +2,6 @@ layout: default title: Task List Extension description: The TaskListExtension adds support for GFM-style task lists -redirect_from: /extensions/task-lists/ --- # Task List Extension diff --git a/docs/2.4/installation.md b/docs/2.4/installation.md index 996b5e144f..ee336845ba 100644 --- a/docs/2.4/installation.md +++ b/docs/2.4/installation.md @@ -2,7 +2,6 @@ layout: default title: Installation description: Instructions on how to install the league/commonmark library -redirect_from: /installation/ --- # Installation diff --git a/docs/2.4/security.md b/docs/2.4/security.md index 6642099bce..5ca8a21be0 100644 --- a/docs/2.4/security.md +++ b/docs/2.4/security.md @@ -2,7 +2,6 @@ layout: default title: Security description: How to configure league/commonmark against possible security issues when handling untrusted user input -redirect_from: /security/ --- # Security diff --git a/docs/2.4/support.md b/docs/2.4/support.md index 9baba20b4a..31856bb1e0 100644 --- a/docs/2.4/support.md +++ b/docs/2.4/support.md @@ -2,7 +2,6 @@ layout: default title: Support description: Get help with the league/commonmark library -redirect_from: /support/ --- # Support diff --git a/docs/2.4/upgrading.md b/docs/2.4/upgrading.md index 1518ada1ac..caa4d9f292 100644 --- a/docs/2.4/upgrading.md +++ b/docs/2.4/upgrading.md @@ -2,7 +2,6 @@ layout: default title: Upgrading from 2.3 to 2.4 description: Guide to upgrading to newer versions of this library -redirect_from: /upgrading/ --- # Upgrading from 2.3 to 2.4 diff --git a/docs/2.4/xml.md b/docs/2.4/xml.md index d7c091826a..caaa4b70c9 100644 --- a/docs/2.4/xml.md +++ b/docs/2.4/xml.md @@ -2,7 +2,6 @@ layout: default title: XML Rendering description: Rendering Markdown documents in XML -redirect_from: /xml/ --- # XML Rendering diff --git a/docs/2.5/basic-usage.md b/docs/2.5/basic-usage.md index f54f68da54..a0e92a9411 100644 --- a/docs/2.5/basic-usage.md +++ b/docs/2.5/basic-usage.md @@ -2,7 +2,6 @@ layout: default title: Basic Usage description: Basic usage of the CommonMark parser -redirect_from: /basic-usage/ --- # Basic Usage diff --git a/docs/2.5/changelog.md b/docs/2.5/changelog.md index fd6d972f13..838fa77bf1 100644 --- a/docs/2.5/changelog.md +++ b/docs/2.5/changelog.md @@ -2,7 +2,6 @@ layout: default title: Changelog description: Important changes made in recent releases -redirect_from: /changelog/ --- # Changelog diff --git a/docs/2.5/configuration.md b/docs/2.5/configuration.md index 5991f9e1cf..bfda00a28d 100644 --- a/docs/2.5/configuration.md +++ b/docs/2.5/configuration.md @@ -1,7 +1,6 @@ --- layout: default title: Configuration -redirect_from: /configuration/ --- # Configuration diff --git a/docs/2.5/customization/abstract-syntax-tree.md b/docs/2.5/customization/abstract-syntax-tree.md index 170e1770d7..2b74c42b10 100644 --- a/docs/2.5/customization/abstract-syntax-tree.md +++ b/docs/2.5/customization/abstract-syntax-tree.md @@ -2,7 +2,6 @@ layout: default title: Abstract Syntax Tree description: Using the Abstract Syntax Tree (AST) to manipulate the parsed content -redirect_from: /customization/abstract-syntax-tree/ --- # Abstract Syntax Tree diff --git a/docs/2.5/customization/block-parsing.md b/docs/2.5/customization/block-parsing.md index 2a8e5e1d40..822a407e77 100644 --- a/docs/2.5/customization/block-parsing.md +++ b/docs/2.5/customization/block-parsing.md @@ -2,7 +2,6 @@ layout: default title: Block Parsing description: How to parse block-level elements -redirect_from: /customization/block-parsing/ --- # Block Parsing diff --git a/docs/2.5/customization/configuration.md b/docs/2.5/customization/configuration.md index 223eaa32d7..4e4259c6c3 100644 --- a/docs/2.5/customization/configuration.md +++ b/docs/2.5/customization/configuration.md @@ -2,7 +2,6 @@ layout: default title: Configuration description: Defining configuration schemas and accessing user-provided configuration options within your custom extensions -redirect_from: /customization/configuration/ --- # Configuration Schemas and Values diff --git a/docs/2.5/customization/cursor.md b/docs/2.5/customization/cursor.md index 5b1e36c9a9..520193ddae 100644 --- a/docs/2.5/customization/cursor.md +++ b/docs/2.5/customization/cursor.md @@ -2,7 +2,6 @@ layout: default title: Cursor description: Using the Cursor object to parse Markdown content -redirect_from: /customization/cursor/ --- # Cursor diff --git a/docs/2.5/customization/delimiter-processing.md b/docs/2.5/customization/delimiter-processing.md index 8748d4ef08..d7eb2151b2 100644 --- a/docs/2.5/customization/delimiter-processing.md +++ b/docs/2.5/customization/delimiter-processing.md @@ -2,7 +2,6 @@ layout: default title: Delimiter Processing description: Processing CommonMark delimiter runs with a custom processor -redirect_from: /customization/delimiter-processing/ --- # Delimiter Processing diff --git a/docs/2.5/customization/environment.md b/docs/2.5/customization/environment.md index 48ef6418ff..9887214bbf 100644 --- a/docs/2.5/customization/environment.md +++ b/docs/2.5/customization/environment.md @@ -2,7 +2,6 @@ layout: default title: The Environment description: Configuring the CommonMark environment with custom options and added functionality -redirect_from: /customization/environment/ --- # The Environment diff --git a/docs/2.5/customization/extensions.md b/docs/2.5/customization/extensions.md index d92a2eabe8..9c15c0b3ea 100644 --- a/docs/2.5/customization/extensions.md +++ b/docs/2.5/customization/extensions.md @@ -2,7 +2,6 @@ layout: default title: Extensions description: Creating custom extensions to add new syntax and other custom functionality -redirect_from: /customization/extensions/ --- # Extensions diff --git a/docs/2.5/customization/inline-parsing.md b/docs/2.5/customization/inline-parsing.md index e43296bf59..cc4c0a9b9f 100644 --- a/docs/2.5/customization/inline-parsing.md +++ b/docs/2.5/customization/inline-parsing.md @@ -2,7 +2,6 @@ layout: default title: Inline Parsing description: Parsing inline elements with a custom parser -redirect_from: /customization/inline-parsing/ --- # Inline Parsing diff --git a/docs/2.5/customization/slug-normalizer.md b/docs/2.5/customization/slug-normalizer.md index 6054e28172..d268301b9b 100644 --- a/docs/2.5/customization/slug-normalizer.md +++ b/docs/2.5/customization/slug-normalizer.md @@ -2,7 +2,6 @@ layout: default title: Slug Normalizer description: Using the Slug Normalizer to produce unique, URL-safe text strings -redirect_from: /customization/slug-normalizer/ --- # Slug Normalizer diff --git a/docs/2.5/extensions/attributes.md b/docs/2.5/extensions/attributes.md index 9c8a7b01d5..35613c6406 100644 --- a/docs/2.5/extensions/attributes.md +++ b/docs/2.5/extensions/attributes.md @@ -2,7 +2,6 @@ layout: default title: Attributes Extension description: The AttributesExtension allows HTML attributes to be added from within the document. -redirect_from: /extensions/attributes/ --- # Attributes diff --git a/docs/2.5/extensions/autolinks.md b/docs/2.5/extensions/autolinks.md index 708afb47f3..75e2d0b512 100644 --- a/docs/2.5/extensions/autolinks.md +++ b/docs/2.5/extensions/autolinks.md @@ -2,7 +2,6 @@ layout: default title: Autolink Extension description: The Autolink extension automatically converts URLs in plain text to clickable links -redirect_from: /extensions/autolinks/ --- # Autolink Extension diff --git a/docs/2.5/extensions/commonmark.md b/docs/2.5/extensions/commonmark.md index 578ef140a9..6ad6ddd846 100644 --- a/docs/2.5/extensions/commonmark.md +++ b/docs/2.5/extensions/commonmark.md @@ -2,7 +2,6 @@ layout: default title: CommonMark Core Extension description: The CommonMarkCoreExtension class includes all core Markdown syntax -redirect_from: /extensions/commonmark/ --- # CommonMark Core Extension diff --git a/docs/2.5/extensions/default-attributes.md b/docs/2.5/extensions/default-attributes.md index ef4425a554..b611839fad 100644 --- a/docs/2.5/extensions/default-attributes.md +++ b/docs/2.5/extensions/default-attributes.md @@ -2,7 +2,6 @@ layout: default title: Default Attributes Extension description: The DefaultAttributesExtension allows you to apply default HTML classes and other attributes using configuration options. -redirect_from: /extensions/default-attributes/ --- # Default Attributes diff --git a/docs/2.5/extensions/description-lists.md b/docs/2.5/extensions/description-lists.md index 08d1f84bb1..60619a3e22 100644 --- a/docs/2.5/extensions/description-lists.md +++ b/docs/2.5/extensions/description-lists.md @@ -2,7 +2,6 @@ layout: default title: Description List Extension description: The Description List extension adds support for Markdown Extra-style
lists -redirect_from: /extensions/description-lists/ --- # Description List Extension diff --git a/docs/2.5/extensions/disallowed-raw-html.md b/docs/2.5/extensions/disallowed-raw-html.md index b3f19a546f..14e76d6dd5 100644 --- a/docs/2.5/extensions/disallowed-raw-html.md +++ b/docs/2.5/extensions/disallowed-raw-html.md @@ -2,7 +2,6 @@ layout: default title: Disallowed Raw HTML Extension description: The DisallowedRawHtmlExtension automatically escapes certain HTML tags when rendering raw HTML -redirect_from: /extensions/disallowed-raw-html/ --- # Disallowed Raw HTML Extension diff --git a/docs/2.5/extensions/embed.md b/docs/2.5/extensions/embed.md index 818fb16344..6e24ddf9fc 100644 --- a/docs/2.5/extensions/embed.md +++ b/docs/2.5/extensions/embed.md @@ -2,7 +2,6 @@ layout: default title: Embed Extension description: The EmbedExtension supports embedding rich content from other websites. -redirect_from: /extensions/embed/ --- # Embed Extension diff --git a/docs/2.5/extensions/external-links.md b/docs/2.5/extensions/external-links.md index ec1f0d4dd1..4472196045 100644 --- a/docs/2.5/extensions/external-links.md +++ b/docs/2.5/extensions/external-links.md @@ -2,7 +2,6 @@ layout: default title: External Links Extension description: The ExternalLinksExtension detects external links and adjusts their HTML markup -redirect_from: /extensions/external-links/ --- # External Links Extension diff --git a/docs/2.5/extensions/footnotes.md b/docs/2.5/extensions/footnotes.md index 7e64d0ed6d..93b6c51e50 100644 --- a/docs/2.5/extensions/footnotes.md +++ b/docs/2.5/extensions/footnotes.md @@ -2,7 +2,6 @@ layout: default title: Footnote Extension description: The FootnoteExtension adds the ability to create footnotes in Markdown documents. -redirect_from: /extensions/footnotes/ --- # Footnotes diff --git a/docs/2.5/extensions/front-matter.md b/docs/2.5/extensions/front-matter.md index 4da079e016..203dccc681 100644 --- a/docs/2.5/extensions/front-matter.md +++ b/docs/2.5/extensions/front-matter.md @@ -2,7 +2,6 @@ layout: default title: Front Matter Extension description: The Front Matter extension automatically parses YAML front matter from your Markdown. -redirect_from: /extensions/front-matter/ --- # Front Matter Extension diff --git a/docs/2.5/extensions/github-flavored-markdown.md b/docs/2.5/extensions/github-flavored-markdown.md index 675429fe5e..0d14840403 100644 --- a/docs/2.5/extensions/github-flavored-markdown.md +++ b/docs/2.5/extensions/github-flavored-markdown.md @@ -2,7 +2,6 @@ layout: default title: GitHub-Flavored Markdown description: The GithubFlavoredMarkdownExtension class includes all the GFM addons -redirect_from: /extensions/github-flavored-markdown/ --- # GitHub-Flavored Markdown diff --git a/docs/2.5/extensions/heading-permalinks.md b/docs/2.5/extensions/heading-permalinks.md index aba29cc518..65a5ef0f9c 100644 --- a/docs/2.5/extensions/heading-permalinks.md +++ b/docs/2.5/extensions/heading-permalinks.md @@ -2,7 +2,6 @@ layout: default title: Heading Permalink Extension description: The HeadingPermalinkExtension makes all header elements linkable -redirect_from: /extensions/heading-permalinks/ --- # Heading Permalink Extension diff --git a/docs/2.5/extensions/inlines-only.md b/docs/2.5/extensions/inlines-only.md index bb4d2d311a..8ef1b5dad0 100644 --- a/docs/2.5/extensions/inlines-only.md +++ b/docs/2.5/extensions/inlines-only.md @@ -2,7 +2,6 @@ layout: default title: Inlines Only Extension description: The InlinesOnlyExtension only enables parsing of inline elements -redirect_from: /extensions/inlines-only/ --- # Inlines Only Extension diff --git a/docs/2.5/extensions/mentions.md b/docs/2.5/extensions/mentions.md index ae14fdf45b..80f3ed3550 100644 --- a/docs/2.5/extensions/mentions.md +++ b/docs/2.5/extensions/mentions.md @@ -2,7 +2,6 @@ layout: default title: Mention Parser description: The MentionParser makes it easy to parse shortened references like @colinodell and #123 to custom URLs -redirect_from: /extensions/mentions/ --- # Mention Extension diff --git a/docs/2.5/extensions/smart-punctuation.md b/docs/2.5/extensions/smart-punctuation.md index 8d60cfbd1e..091c3d5838 100644 --- a/docs/2.5/extensions/smart-punctuation.md +++ b/docs/2.5/extensions/smart-punctuation.md @@ -2,7 +2,6 @@ layout: default title: Smart Punctuation Extension description: The SmartPunctExtension intelligently converts ASCII quotes, dashes, and ellipses to their Unicode equivalents -redirect_from: /extensions/smart-punctuation/ --- # Smart Punctuation Extension diff --git a/docs/2.5/extensions/strikethrough.md b/docs/2.5/extensions/strikethrough.md index 8c38844856..c588399296 100644 --- a/docs/2.5/extensions/strikethrough.md +++ b/docs/2.5/extensions/strikethrough.md @@ -2,7 +2,6 @@ layout: default title: Strikethrough Extension description: The StrikethroughExtension intelligently converts ASCII quotes, dashes, and ellipses to their Unicode equivalents -redirect_from: /extensions/strikethrough/ --- # Strikethrough Extension diff --git a/docs/2.5/extensions/table-of-contents.md b/docs/2.5/extensions/table-of-contents.md index 79ac8baa19..4759f604c3 100644 --- a/docs/2.5/extensions/table-of-contents.md +++ b/docs/2.5/extensions/table-of-contents.md @@ -2,7 +2,6 @@ layout: default title: Table of Contents Extension description: The Table of Contents extension automatically inserts links to the headings in your document. -redirect_from: /extensions/table-of-contents/ --- # Table of Contents Extension diff --git a/docs/2.5/extensions/tables.md b/docs/2.5/extensions/tables.md index 5f838a675e..ca1e113fac 100644 --- a/docs/2.5/extensions/tables.md +++ b/docs/2.5/extensions/tables.md @@ -2,7 +2,6 @@ layout: default title: Table Extension description: The TableExtension adds the ability to create tables in CommonMark documents -redirect_from: /extensions/tables/ --- # Table Extension diff --git a/docs/2.5/extensions/task-lists.md b/docs/2.5/extensions/task-lists.md index 241afe064d..504f337189 100644 --- a/docs/2.5/extensions/task-lists.md +++ b/docs/2.5/extensions/task-lists.md @@ -2,7 +2,6 @@ layout: default title: Task List Extension description: The TaskListExtension adds support for GFM-style task lists -redirect_from: /extensions/task-lists/ --- # Task List Extension diff --git a/docs/2.5/installation.md b/docs/2.5/installation.md index 96ce656134..999c6aebbb 100644 --- a/docs/2.5/installation.md +++ b/docs/2.5/installation.md @@ -2,7 +2,6 @@ layout: default title: Installation description: Instructions on how to install the league/commonmark library -redirect_from: /installation/ --- # Installation diff --git a/docs/2.5/security.md b/docs/2.5/security.md index 8573e69352..d03bd871de 100644 --- a/docs/2.5/security.md +++ b/docs/2.5/security.md @@ -2,7 +2,6 @@ layout: default title: Security description: How to configure league/commonmark against possible security issues when handling untrusted user input -redirect_from: /security/ --- # Security diff --git a/docs/2.5/support.md b/docs/2.5/support.md index 12f995b5c0..f90c41745a 100644 --- a/docs/2.5/support.md +++ b/docs/2.5/support.md @@ -2,7 +2,6 @@ layout: default title: Support description: Get help with the league/commonmark library -redirect_from: /support/ --- # Support diff --git a/docs/2.5/upgrading.md b/docs/2.5/upgrading.md index 6cc089334f..5f34ead7b5 100644 --- a/docs/2.5/upgrading.md +++ b/docs/2.5/upgrading.md @@ -2,7 +2,6 @@ layout: default title: Upgrading from 2.4 to 2.5 description: Guide to upgrading to newer versions of this library -redirect_from: /upgrading/ --- # Upgrading from 2.4 to 2.5 diff --git a/docs/2.5/xml.md b/docs/2.5/xml.md index 4efae4dfb3..e5139b04d9 100644 --- a/docs/2.5/xml.md +++ b/docs/2.5/xml.md @@ -2,7 +2,6 @@ layout: default title: XML Rendering description: Rendering Markdown documents in XML -redirect_from: /xml/ --- # XML Rendering diff --git a/docs/_data/menu.yml b/docs/_data/menu.yml index 2c80416430..327c754e8a 100644 --- a/docs/_data/menu.yml +++ b/docs/_data/menu.yml @@ -1,4 +1,51 @@ version: + '2.6': + Getting Started: + 'Overview': '/2.6/' + 'Installation': '/2.6/installation/' + 'Upgrading from 2.3': '/2.6/upgrading/' + 'Changelog': '/2.6/changelog/' + 'Support': '/2.6/support/' + Usage: + 'Basic Usage': '/2.6/basic-usage/' + 'Configuration': '/2.6/configuration/' + 'Security': '/2.6/security/' + 'XML': '/2.6/xml/' + Extensions: + 'Overview': '/2.6/extensions/overview/' + 'CommonMark': '/2.6/extensions/commonmark/' + 'GitHub-Flavored Markdown': '/2.6/extensions/github-flavored-markdown/' + 'Attributes': '/2.6/extensions/attributes/' + 'Autolinks': '/2.6/extensions/autolinks/' + 'Default Attributes': '/2.6/extensions/default-attributes/' + 'Description Lists': '/2.6/extensions/description-lists/' + 'Disallowed Raw HTML': '/2.6/extensions/disallowed-raw-html/' + 'Embed': '/2.6/extensions/embed/' + 'External Links': '/2.6/extensions/external-links/' + 'Footnotes': '/2.6/extensions/footnotes/' + 'Front Matter': '/2.6/extensions/front-matter/' + 'Heading Permalinks': '/2.6/extensions/heading-permalinks/' + 'Inlines Only': '/2.6/extensions/inlines-only/' + 'Mentions': '/2.6/extensions/mentions/' + 'Smart Punctuation': '/2.6/extensions/smart-punctuation/' + 'Strikethrough': '/2.6/extensions/strikethrough/' + 'Table of Contents': '/2.6/extensions/table-of-contents/' + 'Tables': '/2.6/extensions/tables/' + 'Task Lists': '/2.6/extensions/task-lists/' + Customization: + 'Overview': '/2.6/customization/overview/' + 'Environment': '/2.6/customization/environment/' + 'Extensions': '/2.6/customization/extensions/' + 'Configuration': '/2.6/customization/configuration/' + 'Event Dispatcher': '/2.6/customization/event-dispatcher/' + 'Cursor': '/2.6/customization/cursor/' + 'Block Parsing': '/2.6/customization/block-parsing/' + 'Inline Parsing': '/2.6/customization/inline-parsing/' + 'Delimiter Processing': '/2.6/customization/delimiter-processing/' + 'Abstract Syntax Tree': '/2.6/customization/abstract-syntax-tree/' + 'Rendering': '/2.6/customization/rendering/' + 'Slug Normalizer': '/2.6/customization/slug-normalizer/' + 'Disabling Features': '/2.6/customization/disabling-features/' '2.5': Getting Started: 'Overview': '/2.5/' diff --git a/docs/_data/project.yml b/docs/_data/project.yml index c8cd9d3b7c..b5a3ccc074 100644 --- a/docs/_data/project.yml +++ b/docs/_data/project.yml @@ -4,18 +4,20 @@ description: PHP Markdown parser featuring support for CommonMark, GFM, and cust site_title: CommonMark for PHP google_analytics_tracking_id: UA-137970568-1 repository: commonmark -default_version: '2.5' +default_version: '2.6' releases: next: + '2.7': + documentation_link: '/2.7/' + current: '2.6': documentation_link: '/2.6/' - current: + previous: '2.5': documentation_link: '/2.5/' - previous: + legacy: '2.4': documentation_link: '/2.4/' - legacy: '2.3': documentation_link: '/2.3/' '2.2':