diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-12-03 17:52:47 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-12-03 17:52:47 -0800 |
commit | 51f6f0e3a1533a0e1bb94538f55bdc9db380a028 (patch) | |
tree | f1b39e5e281ea327f4e18b4612fe4d94ea01b18c /test/command | |
parent | 928c120806279579100c7327e92fae21b51a94b4 (diff) | |
download | pandoc-51f6f0e3a1533a0e1bb94538f55bdc9db380a028.tar.gz |
Improve Markdown writer escaping.
This fixes escaping for '#' in particular.
Closes #7726.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/3792.md | 2 | ||||
-rw-r--r-- | test/command/4164.md | 2 | ||||
-rw-r--r-- | test/command/7208.md | 2 | ||||
-rw-r--r-- | test/command/7726.md | 22 | ||||
-rw-r--r-- | test/command/biblatex-sigfridsson.md | 2 |
5 files changed, 26 insertions, 4 deletions
diff --git a/test/command/3792.md b/test/command/3792.md index eff26d517..eb109b9cc 100644 --- a/test/command/3792.md +++ b/test/command/3792.md @@ -6,7 +6,7 @@ and properly escaped. ok ^D --- -title: \<this> \*that\* +title: \<this\> \*that\* --- ok diff --git a/test/command/4164.md b/test/command/4164.md index 68cbd0584..4e7b7e285 100644 --- a/test/command/4164.md +++ b/test/command/4164.md @@ -26,6 +26,6 @@ Here is inline html: Here is inline html: -\<div> \<balise> bla bla \</div> +\<div\> \<balise\> bla bla \</div\> ``` diff --git a/test/command/7208.md b/test/command/7208.md index fe02ec32e..e65943ade 100644 --- a/test/command/7208.md +++ b/test/command/7208.md @@ -2,5 +2,5 @@ % pandoc -t gfm \<hi\> ^D -\<hi> +\<hi\> ``` diff --git a/test/command/7726.md b/test/command/7726.md new file mode 100644 index 000000000..bab11ca04 --- /dev/null +++ b/test/command/7726.md @@ -0,0 +1,22 @@ +``` +% pandoc -t markdown +\# Hi + +\## Hi + +\### Hi + +\#### hi + +and #hi +^D +\# Hi + +\## Hi + +\### Hi + +\#### hi + +and #hi +``` diff --git a/test/command/biblatex-sigfridsson.md b/test/command/biblatex-sigfridsson.md index e042a8762..f83c35622 100644 --- a/test/command/biblatex-sigfridsson.md +++ b/test/command/biblatex-sigfridsson.md @@ -90,7 +90,7 @@ references: - family: Ryde given: Ulf container-title: Journal of Computational Chemistry - doi: "10.1002/(SICI)1096-987X(199803)19:4\\<377::AID-JCC1>3.0.CO;2-P" + doi: "10.1002/(SICI)1096-987X(199803)19:4\\<377::AID-JCC1\\>3.0.CO;2-P" id: sigfridsson issue: 4 issued: 1998 |