mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
20 lines
439 B
Perl
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<+>b\).</p>'
|
|
|
|
try 'latex with $$ .. $$' '$$foo$$' '<p>$$foo$$</p>'
|
|
try 'latex with \[ .. \]' '\[foo\]' '<p>\[foo\]</p>'
|
|
|
|
summary $0
|
|
exit $rc
|