Skip to content

Commit

Permalink
Add '$' backslash escape to testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidl022 authored and kjk committed Dec 22, 2023
1 parent 282af34 commit 1d6d208
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions testdata/Backslash escapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

<p>Tilde: ~</p>

<p>Dollar: $</p>

<p>These should not, because they occur within a code block:</p>

<pre><code>Backslash: \\
Expand Down Expand Up @@ -69,6 +71,8 @@
Minus: \-

Tilde: \~

Dollar: \$
</code></pre>

<p>Nor should these, which occur in code spans:</p>
Expand Down Expand Up @@ -107,6 +111,8 @@

<p>Tilde: <code>\~</code></p>

<p>Dollar: <code>\$</code></p>

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

Expand Down
6 changes: 5 additions & 1 deletion testdata/Backslash escapes.text
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Minus: \-

Tilde: \~


Dollar: \$

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

Expand Down Expand Up @@ -72,6 +72,8 @@ These should not, because they occur within a code block:

Tilde: \~

Dollar: \$


Nor should these, which occur in code spans:

Expand Down Expand Up @@ -109,6 +111,8 @@ Minus: `\-`

Tilde: `\~`

Dollar: `\$`


These should get escaped, even though they're matching pairs for
other Markdown constructs:
Expand Down
1 change: 1 addition & 0 deletions testdata/Markdown Documentation - Syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -943,4 +943,5 @@ <h3 id="backslash">Backslash Escapes</h3>
- minus sign (hyphen)
. dot
! exclamation mark
$ dollar sign
</code></pre>
2 changes: 1 addition & 1 deletion testdata/Markdown Documentation - Syntax.text
Original file line number Diff line number Diff line change
Expand Up @@ -885,4 +885,4 @@ Markdown provides backslash escapes for the following characters:
- minus sign (hyphen)
. dot
! exclamation mark

$ dollar sign

0 comments on commit 1d6d208

Please sign in to comment.