From 79201461b6d4d7b90f95d5a8951bd027291f9c92 Mon Sep 17 00:00:00 2001 From: Aayaan Khan <186551075+Akay-74@users.noreply.github.com> Date: Tue, 1 Dec 2026 21:31:54 +0530 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9A=20DOCS:=20Note=20nested=20dire?= =?UTF-8?q?ctive=20fence=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d79c7010..4b1a78c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -538,6 +538,12 @@ In addition, configuration to more finely tune this behaviour has been added. - `myst_all_links_external=True`, will make all links be treated as (1) - `myst_url_schemes=("http", "https")`, sets what URL schemes are treated as (1) - `myst_ref_domains=("std", "py")`, sets what Sphinx reference domains are checked, when handling (3) +## Unreleased + +### 📚 Documentation + +- Show how to mix backtick and tilde fences when nesting directives (). + See [Markdown Links and Referencing](docs/syntax/cross-referencing.md) for more information. From 06ae24d95a320149ecc57476739e20db6d772074 Mon Sep 17 00:00:00 2001 From: Aayaan Khan <186551075+Akay-74@users.noreply.github.com> Date: Tue, 1 Dec 2026 21:32:51 +0530 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9A=20DOCS:=20Show=20mixed=20fence?= =?UTF-8?q?s=20for=20nested=20directives?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/syntax/roles-and-directives.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/syntax/roles-and-directives.md b/docs/syntax/roles-and-directives.md index 6dfeb76f..ad459747 100644 --- a/docs/syntax/roles-and-directives.md +++ b/docs/syntax/roles-and-directives.md @@ -187,6 +187,21 @@ But the next block will be parsed as raw text ```` ::: +You can also use different fence characters for adjacent levels. For example, +use tildes for the outer directive and backticks for the inner one. Both fences +can then use three characters, and the inner fence may still be indented by up +to three spaces: + +:::{syntax-example} +~~~{note} +Check the configuration first. + + ```{warning} + Restart the application after changing the configuration. + ``` +~~~ +::: + This can really be abused if you'd like ;-) :::{syntax-example} From 5660f203c44a29391b4ec4b128c808bcc5689187 Mon Sep 17 00:00:00 2001 From: Aayaan Khan <186551075+Akay-74@users.noreply.github.com> Date: Tue, 1 Dec 2026 21:33:52 +0530 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9A=20DOCS:=20Place=20entry=20unde?= =?UTF-8?q?r=20Unreleased?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b1a78c3..8ff573c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### 📚 Documentation + +- Show how to mix backtick and tilde fences when nesting directives (). + ## 5.2.0 - 2026-11-10 Heading anchors are now stable and documented: @@ -538,12 +544,6 @@ In addition, configuration to more finely tune this behaviour has been added. - `myst_all_links_external=True`, will make all links be treated as (1) - `myst_url_schemes=("http", "https")`, sets what URL schemes are treated as (1) - `myst_ref_domains=("std", "py")`, sets what Sphinx reference domains are checked, when handling (3) -## Unreleased - -### 📚 Documentation - -- Show how to mix backtick and tilde fences when nesting directives (). - See [Markdown Links and Referencing](docs/syntax/cross-referencing.md) for more information.