Files
discount/tests/latex.t
T

20 lines
439 B
Perl

. tests/functions.sh
# don't run these tests unless --with-latex
./markdown -V | grep LATEX >/dev/null || exit 0
title "embedded latex"
rc=0
MARKDOWN_FLAGS=
try 'latex passthrough' '\(\tex\)' '<p>\(\tex\)</p>'
try 'latex w/ special characters' 'Equation:\(a<+>b\).' \
'<p>Equation:\(a&lt;+&gt;b\).</p>'
try 'latex with $$ .. $$' '$$foo$$' '<p>$$foo$$</p>'
try 'latex with \[ .. \]' '\[foo\]' '<p>\[foo\]</p>'
summary $0
exit $rc