From 3809d447dc9d662a8813e2b1fee601b18211d274 Mon Sep 17 00:00:00 2001 From: natasha-moore-elastic Date: Mon, 31 Mar 2025 16:38:24 +0100 Subject: [PATCH 1/2] Adds syntax for subscript & superscript --- docs/syntax/sundries.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/syntax/sundries.md b/docs/syntax/sundries.md index a10ef1487..51fe92543 100644 --- a/docs/syntax/sundries.md +++ b/docs/syntax/sundries.md @@ -16,7 +16,12 @@ Note that there should be no space between the enclosing markers and the text. ## Subscript & Superscript -H~2~O, and 4^th^ of July +| Syntax | Result | +| ---------------- | ------------- | +| H\~2\~O | H~2~O | +| 4\^th\^ of July | 4^th^ of July | + + ## Quotation From 73d20d96d4a66b84a8a8e2d78279ec4b846f705e Mon Sep 17 00:00:00 2001 From: natasha-moore-elastic Date: Tue, 1 Apr 2025 14:54:58 +0100 Subject: [PATCH 2/2] Updates pattern --- docs/syntax/sundries.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/docs/syntax/sundries.md b/docs/syntax/sundries.md index 51fe92543..a5d67e6d9 100644 --- a/docs/syntax/sundries.md +++ b/docs/syntax/sundries.md @@ -15,13 +15,34 @@ Note that there should be no space between the enclosing markers and the text. | `\*escaped symbols\*` | \*escaped symbols\* | ## Subscript & Superscript + +::::{tab-set} -| Syntax | Result | -| ---------------- | ------------- | -| H\~2\~O | H~2~O | -| 4\^th\^ of July | 4^th^ of July | +:::{tab-item} Output +H~2~O +::: +:::{tab-item} Markdown +```markdown +H~2~O +``` +::: +:::: + +::::{tab-set} + +:::{tab-item} Output +4^th^ of July +::: + +:::{tab-item} Markdown +```markdown +4^th^ of July +``` +::: + +:::: ## Quotation