git.iko.soy/typeable/pandoc
on master help sign in
DokuWiki writer: Updated tests.
commit15956fcac75febaed7bf159abcee24c02fb1a8c1 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 13 Jul 2014, 15:45 (12 years ago) parent71da4f8
1 file changed+69−51
tests/writer.dokuwiki+69−51
tests/writer.dokuwiki+69−51
@@ -286,26 +286,35 @@ bar
286286
287287Interpreted markdown in a table:
288288
289−<html>
290−<table></html>
291−<html>
292−<tr></html>
293−<html>
294−<td></html>
289+<HTML>
290+<table>
291+</HTML>
292+<HTML>
293+<tr>
294+</HTML>
295+<HTML>
296+<td>
297+</HTML>
295298This is //emphasized//
296−<html>
297−</td></html>
298−<html>
299−<td></html>
299+<HTML>
300+</td>
301+</HTML>
302+<HTML>
303+<td>
304+</HTML>
300305And this is **strong**
301−<html>
302−</td></html>
303−<html>
304−</tr></html>
305−<html>
306−</table></html>
307−<html>
308−<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script></html>
306+<HTML>
307+</td>
308+</HTML>
309+<HTML>
310+</tr>
311+</HTML>
312+<HTML>
313+</table>
314+</HTML>
315+<HTML>
316+<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
317+</HTML>
309318Here’s a simple block:
310319
311320foo
@@ -326,49 +335,62 @@ foo
326335
327336This should just be an HTML comment:
328337
329−<html>
330−<!-- Comment --></html>
338+<HTML>
339+<!-- Comment -->
340+</HTML>
331341Multiline:
332342
333−<html>
343+<HTML>
334344<!--
335345Blah
336346Blah
337−--></html>
338−<html>
347+-->
348+</HTML>
349+<HTML>
339350<!--
340351 This is another comment.
341−--></html>
352+-->
353+</HTML>
342354Code block:
343355
344356<code><!-- Comment --></code>
345357Just plain comment, with trailing spaces on the line:
346358
347−<html>
348−<!-- foo --></html>
359+<HTML>
360+<!-- foo -->
361+</HTML>
349362Code:
350363
351364<code><hr /></code>
352365Hr’s:
353366
354−<html>
355−<hr></html>
356−<html>
357−<hr /></html>
358−<html>
359−<hr /></html>
360−<html>
361−<hr></html>
362−<html>
363−<hr /></html>
364−<html>
365−<hr /></html>
366−<html>
367−<hr class="foo" id="bar" /></html>
368−<html>
369−<hr class="foo" id="bar" /></html>
370−<html>
371−<hr class="foo" id="bar"></html>
367+<HTML>
368+<hr>
369+</HTML>
370+<HTML>
371+<hr />
372+</HTML>
373+<HTML>
374+<hr />
375+</HTML>
376+<HTML>
377+<hr>
378+</HTML>
379+<HTML>
380+<hr />
381+</HTML>
382+<HTML>
383+<hr />
384+</HTML>
385+<HTML>
386+<hr class="foo" id="bar" />
387+</HTML>
388+<HTML>
389+<hr class="foo" id="bar" />
390+</HTML>
391+<HTML>
392+<hr class="foo" id="bar">
393+</HTML>
372394
373395----
374396
@@ -424,7 +446,7 @@ Ellipses…and…and….
424446
425447====== LaTeX ======
426448
427− * \cite[22-23]{smith.1899}
449+ *
428450 * <math>2+2=4</math>
429451 * <math>x \in y</math>
430452 * <math>\alpha \wedge \omega</math>
@@ -442,11 +464,7 @@ These shouldn’t be math:
442464
443465Here’s a LaTeX table:
444466
445−\begin{tabular}{|l|l|}\hline
446−Animal & Number \\ \hline
447−Dog & 2 \\
448−Cat & 1 \\ \hline
449−\end{tabular}
467+
450468
451469----
452470
@@ -570,7 +588,7 @@ With an ampersand: http://example.com/?foo=1&bar=2
570588 * http://example.com/
571589 * It should.
572590
573−An e-mail address: [[mailto:nobody@nowhere.net|nobody@nowhere.net]]
591+An e-mail address: <nobody@nowhere.net>
574592
575593> Blockquoted: http://example.com/
576594