]> granicus.if.org Git - multimarkdown/commitdiff
ADDED: Add additional tests for special characters
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 24 Jun 2018 16:56:40 +0000 (12:56 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 24 Jun 2018 16:56:40 +0000 (12:56 -0400)
tests/MMD6Tests/Link Variations.fodt
tests/MMD6Tests/Link Variations.html
tests/MMD6Tests/Link Variations.htmlc
tests/MMD6Tests/Link Variations.tex
tests/MMD6Tests/Link Variations.text
tests/MMD6Tests/Special Characters.fodt
tests/MMD6Tests/Special Characters.html
tests/MMD6Tests/Special Characters.htmlc
tests/MMD6Tests/Special Characters.tex
tests/MMD6Tests/Special Characters.text

index be2fe4764d325a3b39490f226c4fb4e381affa5c..e0b23bc589bd9deb53f207dd7d5f18f6ff168186 100644 (file)
@@ -293,6 +293,18 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 <text:p text:style-name="Standard">5</text:p>
 
 <text:p text:style-name="Standard">Link to <text:a xlink:type="simple" xlink:href="#foobar">Foo</text:a>.</text:p>
+
+<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://example.com/?bar=foo&amp;foo=bar">&amp; link</text:a></text:p>
+
+<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://example.com/%25%20link">&#8216;%&#8217; Link</text:a></text:p>
+
+<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://example.com/#foo">&#8216;#&#8217; link</text:a></text:p>
+
+<text:p text:style-name="Standard">10</text:p>
+
+<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://example.com/_foo">_ link</text:a></text:p>
+
+<text:p text:style-name="Standard"><text:a xlink:type="simple" xlink:href="http://example.com/~foo">~ link</text:a></text:p>
 </office:text>
 </office:body>
 </office:document>
index 5b7e0f5e79d5cc404fc8066ca53db75cf92331d2..e3b2ce7450c29dfe11e1c44b381ab5975e1534a9 100644 (file)
 
 <p>Link to <a href="#foobar">Foo</a>.</p>
 
+<p><a href="http://example.com/?bar=foo&amp;foo=bar">&amp; link</a></p>
+
+<p><a href="http://example.com/%25%20link">&#8216;%&#8217; Link</a></p>
+
+<p><a href="http://example.com/#foo">&#8216;#&#8217; link</a></p>
+
+<p>10</p>
+
+<p><a href="http://example.com/_foo">_ link</a></p>
+
+<p><a href="http://example.com/~foo">~ link</a></p>
+
 </body>
 </html>
 
index 7b669fa614aeac26ad150dc1c45a85da139de270..e99423f7674466dc270e21a3ef7ebd7fb4921ba8 100644 (file)
@@ -16,3 +16,15 @@ latex config:        article</p>
 <p>5</p>
 
 <p>Link to [Foo][Foo Bar].</p>
+
+<p><a href="http://example.com/?bar=foo&amp;foo=bar">&amp; link</a></p>
+
+<p><a href="http://example.com/%25%20link">'%' Link</a></p>
+
+<p><a href="http://example.com/#foo">'#' link</a></p>
+
+<p>10</p>
+
+<p><a href="http://example.com/_foo">_ link</a></p>
+
+<p><a href="http://example.com/~foo">~ link</a></p>
index a25b7bd81a0e873563041feff44cf2d318974fae..ed6266adc8ae81d0e2390f069efb90e2bbbae7eb 100644 (file)
@@ -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}
index c6eb66458ff7f9d1307fb99b8016b133b8889418..1a695ca8e372958af2724e6e90dd0f28eb168baf 100644 (file)
@@ -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
index 421e89c52430b3b640220753420117f810c332ad..983045b19948fd258f1c00fd881424da4ac3faec 100644 (file)
@@ -297,6 +297,28 @@ office:mimetype="application/vnd.oasis.opendocument.text">
 <text:p text:style-name="Standard">%</text:p>
 
 <text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">%</text:span></text:p>
+
+<text:p text:style-name="Standard">10</text:p>
+
+<text:p text:style-name="Standard">&amp; % # _ { } ~ ^ \</text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">&amp;</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">%</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">#</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">_</text:span></text:p>
+
+<text:p text:style-name="Standard">15</text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">{</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">}</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">^</text:span></text:p>
+
+<text:p text:style-name="Standard"><text:span text:style-name="Source_20_Text">\\</text:span></text:p>
 </office:text>
 </office:body>
 </office:document>
index c31d1c81707b9837260bd40c302df55fc7006832..a50405bb034ddf0545d2fb25eaf892f50991cf46 100644 (file)
 
 <p><code>%</code></p>
 
+<p>10</p>
+
+<p>&amp; % # _ { } ~ ^ \</p>
+
+<p><code>&amp;</code></p>
+
+<p><code>%</code></p>
+
+<p><code>#</code></p>
+
+<p><code>_</code></p>
+
+<p>15</p>
+
+<p><code>{</code></p>
+
+<p><code>}</code></p>
+
+<p><code>^</code></p>
+
+<p><code>\\</code></p>
+
 </body>
 </html>
 
index 61e253d7aefce73a461457245997030779a2c078..6d4cdd71bfd7fe84a818defe8007a60989492f1d 100644 (file)
@@ -22,3 +22,25 @@ latex config:        article</p>
 <p>%</p>
 
 <p><code>%</code></p>
+
+<p>10</p>
+
+<p>&amp; % # _ { } ~ ^ \</p>
+
+<p><code>&amp;</code></p>
+
+<p><code>%</code></p>
+
+<p><code>#</code></p>
+
+<p><code>_</code></p>
+
+<p>15</p>
+
+<p><code>{</code></p>
+
+<p><code>}</code></p>
+
+<p><code>^</code></p>
+
+<p><code>\\</code></p>
index eb99dc89e2cbe72ab93fbbd978d6b7b47edd60e2..b92e5b97351b0d01953b428c4f2d9b2d9bc97c82 100644 (file)
 
 \texttt{\%}
 
+10
+
+\& \% \# \_ \{ \} \ensuremath{\sim} \^{} \textbackslash{}
+
+\texttt{\&}
+
+\texttt{\%}
+
+\texttt{\#}
+
+\texttt{\_}
+
+15
+
+\texttt{\{}
+
+\texttt{\}}
+
+\texttt{\^{}}
+
+\texttt{\textbackslash{}\textbackslash{}}
+
 \input{mmd6-article-footer}
 \end{document}
index 44e0c158c74a2f539ca9f345b8c101a5d99de623..95df5a3cdc1a7692e34619e286cc070ff01e5f09 100644 (file)
@@ -21,4 +21,26 @@ latex config:        article
 
 %
 
-`%`
\ No newline at end of file
+`%`
+
+10
+
+& %  # _ { } ~ ^ \\
+
+`&`
+
+`%`
+
+`#`
+
+`_`
+
+15
+
+`{`
+
+`}`
+
+`^`
+
+`\\`