git.iko.soy/typeable/pandoc
on master help sign in
DokuWiki writer: Updated tests.
15956fcJohn MacFarlane
tests/writer.dokuwiki+69−51
@@ -286,26 +286,35 @@ bar
286
286
287Interpreted markdown in a table:
287Interpreted markdown in a table:
288
288
289−<html>
289+<HTML>
290−<table></html>
290+<table>
291−<html>
291+</HTML>
292+<HTML>
292−<tr></html>
293+<tr>
293−<html>
294+</HTML>
295+<HTML>
294−<td></html>
296+<td>
297+</HTML>
295This is //emphasized//
298This is //emphasized//
296−<html>
299+<HTML>
297−</td></html>
300+</td>
298−<html>
301+</HTML>
302+<HTML>
299−<td></html>
303+<td>
304+</HTML>
300And this is **strong**
305And this is **strong**
301−<html>
306+<HTML>
302−</td></html>
307+</td>
303−<html>
308+</HTML>
309+<HTML>
304−</tr></html>
310+</tr>
305−<html>
311+</HTML>
312+<HTML>
306−</table></html>
313+</table>
307−<html>
314+</HTML>
315+<HTML>
308−<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script></html>
316+<script type="text/javascript">document.write('This *should not* be interpreted as markdown');</script>
317+</HTML>
309Here’s a simple block:
318Here’s a simple block:
310
319
311foo
320foo
@@ -326,49 +335,62 @@ foo
326
335
327This should just be an HTML comment:
336This should just be an HTML comment:
328
337
329−<html>
338+<HTML>
330−<!-- Comment --></html>
339+<!-- Comment -->
340+</HTML>
331Multiline:
341Multiline:
332
342
333−<html>
343+<HTML>
334<!--
344<!--
335Blah
345Blah
336Blah
346Blah
337−--></html>
347+-->
338−<html>
348+</HTML>
349+<HTML>
339<!--
350<!--
340 This is another comment.
351 This is another comment.
341−--></html>
352+-->
353+</HTML>
342Code block:
354Code block:
343
355
344<code><!-- Comment --></code>
356<code><!-- Comment --></code>
345Just plain comment, with trailing spaces on the line:
357Just plain comment, with trailing spaces on the line:
346
358
347−<html>
359+<HTML>
348−<!-- foo --></html>
360+<!-- foo -->
361+</HTML>
349Code:
362Code:
350
363
351<code><hr /></code>
364<code><hr /></code>
352Hr’s:
365Hr’s:
353
366
354−<html>
367+<HTML>
355−<hr></html>
368+<hr>
356−<html>
369+</HTML>
370+<HTML>
357−<hr /></html>
371+<hr />
358−<html>
372+</HTML>
373+<HTML>
359−<hr /></html>
374+<hr />
360−<html>
375+</HTML>
376+<HTML>
361−<hr></html>
377+<hr>
362−<html>
378+</HTML>
379+<HTML>
363−<hr /></html>
380+<hr />
364−<html>
381+</HTML>
382+<HTML>
365−<hr /></html>
383+<hr />
366−<html>
384+</HTML>
385+<HTML>
367−<hr class="foo" id="bar" /></html>
386+<hr class="foo" id="bar" />
368−<html>
387+</HTML>
388+<HTML>
369−<hr class="foo" id="bar" /></html>
389+<hr class="foo" id="bar" />
370−<html>
390+</HTML>
391+<HTML>
371−<hr class="foo" id="bar"></html>
392+<hr class="foo" id="bar">
393+</HTML>
372
394
373----
395----
374
396
@@ -424,7 +446,7 @@ Ellipses…and…and….
424
446
425====== LaTeX ======
447====== LaTeX ======
426
448
427− * \cite[22-23]{smith.1899}
449+ *
428 * <math>2+2=4</math>
450 * <math>2+2=4</math>
429 * <math>x \in y</math>
451 * <math>x \in y</math>
430 * <math>\alpha \wedge \omega</math>
452 * <math>\alpha \wedge \omega</math>
@@ -442,11 +464,7 @@ These shouldn’t be math:
442
464
443Here’s a LaTeX table:
465Here’s a LaTeX table:
444
466
445−\begin{tabular}{|l|l|}\hline
467+
446−Animal & Number \\ \hline
447−Dog & 2 \\
448−Cat & 1 \\ \hline
449−\end{tabular}
450
468
451----
469----
452
470
@@ -570,7 +588,7 @@ With an ampersand: http://example.com/?foo=1&bar=2
570 * http://example.com/
588 * http://example.com/
571 * It should.
589 * It should.
572
590
573−An e-mail address: [[mailto:nobody@nowhere.net|nobody@nowhere.net]]
591+An e-mail address: <nobody@nowhere.net>
574
592
575> Blockquoted: http://example.com/
593> Blockquoted: http://example.com/
576
594