From: Fletcher T. Penney Date: Sun, 24 Jun 2018 16:56:40 +0000 (-0400) Subject: ADDED: Add additional tests for special characters X-Git-Tag: 6.4.0^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5ae1f0e5854eb920cec4d71e29bcbf44d43862a;p=multimarkdown ADDED: Add additional tests for special characters --- diff --git a/tests/MMD6Tests/Link Variations.fodt b/tests/MMD6Tests/Link Variations.fodt index be2fe47..e0b23bc 100644 --- a/tests/MMD6Tests/Link Variations.fodt +++ b/tests/MMD6Tests/Link Variations.fodt @@ -293,6 +293,18 @@ office:mimetype="application/vnd.oasis.opendocument.text"> 5 Link to Foo. + +& link + +‘%’ Link + +‘#’ link + +10 + +_ link + +~ link diff --git a/tests/MMD6Tests/Link Variations.html b/tests/MMD6Tests/Link Variations.html index 5b7e0f5..e3b2ce7 100644 --- a/tests/MMD6Tests/Link Variations.html +++ b/tests/MMD6Tests/Link Variations.html @@ -22,6 +22,18 @@

Link to Foo.

+

& link

+ +

‘%’ Link

+ +

‘#’ link

+ +

10

+ +

_ link

+ +

~ link

+ diff --git a/tests/MMD6Tests/Link Variations.htmlc b/tests/MMD6Tests/Link Variations.htmlc index 7b669fa..e99423f 100644 --- a/tests/MMD6Tests/Link Variations.htmlc +++ b/tests/MMD6Tests/Link Variations.htmlc @@ -16,3 +16,15 @@ latex config: article

5

Link to [Foo][Foo Bar].

+ +

& link

+ +

'%' Link

+ +

'#' link

+ +

10

+ +

_ link

+ +

~ link

diff --git a/tests/MMD6Tests/Link Variations.tex b/tests/MMD6Tests/Link Variations.tex index a25b7bd..ed6266a 100644 --- a/tests/MMD6Tests/Link Variations.tex +++ b/tests/MMD6Tests/Link Variations.tex @@ -19,5 +19,17 @@ Link to \autoref{foobar}. Link to Foo (\autoref{foobar}). +\href{http://example.com/?bar=foo&foo=bar}{\& link}\footnote{\href{http://example.com/?bar=foo&foo=bar}{http:\slash \slash example.com\slash ?bar=foo\&foo=bar}} + +\href{http://example.com/%25%20link}{`\%' Link}\footnote{\href{http://example.com/%25%20link}{http:\slash \slash example.com\slash \%25\%20link}} + +\href{http://example.com/#foo}{`\#' link}\footnote{\href{http://example.com/#foo}{http:\slash \slash example.com\slash \#foo}} + +10 + +\href{http://example.com/_foo}{\_ link}\footnote{\href{http://example.com/_foo}{http:\slash \slash example.com\slash \_foo}} + +\href{http://example.com/~foo}{\ensuremath{\sim} link}\footnote{\href{http://example.com/~foo}{http:\slash \slash example.com\slash \ensuremath{\sim}foo}} + \input{mmd6-article-footer} \end{document} diff --git a/tests/MMD6Tests/Link Variations.text b/tests/MMD6Tests/Link Variations.text index c6eb664..1a695ca 100644 --- a/tests/MMD6Tests/Link Variations.text +++ b/tests/MMD6Tests/Link Variations.text @@ -17,3 +17,14 @@ Link to [](#foobar). Link to [Foo][Foo Bar]. +[& link](http://example.com/?bar=foo&foo=bar) + +['%' Link](http://example.com/%25%20link) + +['#' link](http://example.com/#foo) + +10 + +[_ link](http://example.com/_foo) + +[~ link](http://example.com/~foo) \ No newline at end of file diff --git a/tests/MMD6Tests/Special Characters.fodt b/tests/MMD6Tests/Special Characters.fodt index 421e89c..983045b 100644 --- a/tests/MMD6Tests/Special Characters.fodt +++ b/tests/MMD6Tests/Special Characters.fodt @@ -297,6 +297,28 @@ office:mimetype="application/vnd.oasis.opendocument.text"> % % + +10 + +& % # _ { } ~ ^ \ + +& + +% + +# + +_ + +15 + +{ + +} + +^ + +\\ diff --git a/tests/MMD6Tests/Special Characters.html b/tests/MMD6Tests/Special Characters.html index c31d1c8..a50405b 100644 --- a/tests/MMD6Tests/Special Characters.html +++ b/tests/MMD6Tests/Special Characters.html @@ -28,6 +28,28 @@

%

+

10

+ +

& % # _ { } ~ ^ \

+ +

&

+ +

%

+ +

#

+ +

_

+ +

15

+ +

{

+ +

}

+ +

^

+ +

\\

+ diff --git a/tests/MMD6Tests/Special Characters.htmlc b/tests/MMD6Tests/Special Characters.htmlc index 61e253d..6d4cdd7 100644 --- a/tests/MMD6Tests/Special Characters.htmlc +++ b/tests/MMD6Tests/Special Characters.htmlc @@ -22,3 +22,25 @@ latex config: article

%

%

+ +

10

+ +

& % # _ { } ~ ^ \

+ +

&

+ +

%

+ +

#

+ +

_

+ +

15

+ +

{

+ +

}

+ +

^

+ +

\\

diff --git a/tests/MMD6Tests/Special Characters.tex b/tests/MMD6Tests/Special Characters.tex index eb99dc8..b92e5b9 100644 --- a/tests/MMD6Tests/Special Characters.tex +++ b/tests/MMD6Tests/Special Characters.tex @@ -22,5 +22,27 @@ \texttt{\%} +10 + +\& \% \# \_ \{ \} \ensuremath{\sim} \^{} \textbackslash{} + +\texttt{\&} + +\texttt{\%} + +\texttt{\#} + +\texttt{\_} + +15 + +\texttt{\{} + +\texttt{\}} + +\texttt{\^{}} + +\texttt{\textbackslash{}\textbackslash{}} + \input{mmd6-article-footer} \end{document} diff --git a/tests/MMD6Tests/Special Characters.text b/tests/MMD6Tests/Special Characters.text index 44e0c15..95df5a3 100644 --- a/tests/MMD6Tests/Special Characters.text +++ b/tests/MMD6Tests/Special Characters.text @@ -21,4 +21,26 @@ latex config: article % -`%` \ No newline at end of file +`%` + +10 + +& % # _ { } ~ ^ \\ + +`&` + +`%` + +`#` + +`_` + +15 + +`{` + +`}` + +`^` + +`\\`