From 1d6d20845b47fa00debbd727d537128b9f0776d2 Mon Sep 17 00:00:00 2001 From: Dawid Lachowicz Date: Fri, 22 Dec 2023 20:07:07 +0000 Subject: [PATCH] Add '$' backslash escape to testdata --- testdata/Backslash escapes.html | 6 ++++++ testdata/Backslash escapes.text | 6 +++++- testdata/Markdown Documentation - Syntax.html | 1 + testdata/Markdown Documentation - Syntax.text | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/testdata/Backslash escapes.html b/testdata/Backslash escapes.html index a73c998..a26e7df 100644 --- a/testdata/Backslash escapes.html +++ b/testdata/Backslash escapes.html @@ -34,6 +34,8 @@

Tilde: ~

+

Dollar: $

+

These should not, because they occur within a code block:

Backslash: \\
@@ -69,6 +71,8 @@
 Minus: \-
 
 Tilde: \~
+
+Dollar: \$
 

Nor should these, which occur in code spans:

@@ -107,6 +111,8 @@

Tilde: \~

+

Dollar: \$

+

These should get escaped, even though they're matching pairs for other Markdown constructs:

diff --git a/testdata/Backslash escapes.text b/testdata/Backslash escapes.text index 04c20bd..411bbad 100644 --- a/testdata/Backslash escapes.text +++ b/testdata/Backslash escapes.text @@ -34,7 +34,7 @@ Minus: \- Tilde: \~ - +Dollar: \$ These should not, because they occur within a code block: @@ -72,6 +72,8 @@ These should not, because they occur within a code block: Tilde: \~ + Dollar: \$ + Nor should these, which occur in code spans: @@ -109,6 +111,8 @@ Minus: `\-` Tilde: `\~` +Dollar: `\$` + These should get escaped, even though they're matching pairs for other Markdown constructs: diff --git a/testdata/Markdown Documentation - Syntax.html b/testdata/Markdown Documentation - Syntax.html index 6cd05fb..1cf9f5f 100644 --- a/testdata/Markdown Documentation - Syntax.html +++ b/testdata/Markdown Documentation - Syntax.html @@ -943,4 +943,5 @@

Backslash Escapes

- minus sign (hyphen) . dot ! exclamation mark +$ dollar sign diff --git a/testdata/Markdown Documentation - Syntax.text b/testdata/Markdown Documentation - Syntax.text index 57360a1..d24e885 100644 --- a/testdata/Markdown Documentation - Syntax.text +++ b/testdata/Markdown Documentation - Syntax.text @@ -885,4 +885,4 @@ Markdown provides backslash escapes for the following characters: - minus sign (hyphen) . dot ! exclamation mark - + $ dollar sign