John MacFarlane
530e3edc0f
test-pandoc: More informative diff output on test failure.
...
Now the test suite tells you the exact command that was run,
and the file containing the expected output.
2011-01-12 11:35:49 +01:00
John MacFarlane
046c9c7d3b
test-pandoc: Relocated --columns=80 to just where it's needed.
...
We only need it for certain table tests, because of the relative
alignments.
2011-01-12 11:35:44 +01:00
John MacFarlane
51d9d8b674
test-pandoc: Fixed + and - in diff output, which were reversed.
2011-01-12 11:35:40 +01:00
John MacFarlane
715e33705f
test-pandoc: More diff-like diffs in case of test failure.
2011-01-12 11:35:34 +01:00
John MacFarlane
eb1d014859
Improvements to test suite.
...
+ You can now specify glob patterns after 'cabal test';
e.g. 'cabal test latex' will only run the latex tests.
+ Instead of detecting highlighting support in Setup.hs,
we now detect it in test-pandoc, by looking to see if
'languages' is null.
+ We now verify the lhs readers against the lhs-test.native,
normalizing with 'normalize'. This makes more sense than
verifying against HTML, which also brings in the HTML writer.
+ Added lhsn-test.nohl.{html,html+lhs}, so we can do the lhs
tests whether or not highlighting has been installed.
2011-01-12 11:35:10 +01:00
Nathan Gass
3bc0a55af0
Removed outdated comments.
2011-01-11 22:37:41 +01:00
Nathan Gass
e8fa72c6a7
Moved test-pandoc.hs to tests directory.
2011-01-11 21:49:49 +01:00
Nathan Gass
f3ee73607f
Removed run prefix from all test functions.
2011-01-11 21:30:19 +01:00
Nathan Gass
a2153acfff
Include lhs tests in existing testGroup structure.
2011-01-11 21:10:36 +01:00
Nathan Gass
e06899ef1f
Add reader groups for markdown and rst reader tests.
2011-01-11 20:41:34 +01:00
Nathan Gass
c0700987ba
Changed test-pandoc to use test-framework and HUnit.
2011-01-10 00:37:46 +01:00
John MacFarlane
bda1032f66
Updated changelog, relann1.7.
2011-01-09 11:18:08 -08:00
John MacFarlane
3317e9dea8
pandoc: Test standalone' rather than standalone for final newline.
2011-01-07 18:12:20 -08:00
John MacFarlane
d891b2c29d
LaTeX reader: Support simple tables.
2011-01-07 10:15:48 -08:00
John MacFarlane
93c3e27731
pandoc: Add newline to output unless standalone.
...
This avoids output that does not end with a newline, which
is inconvenient when working with many tools.
Updated tests accordingly.
2011-01-06 21:05:28 -08:00
John MacFarlane
71bedab81c
LHS test changes for new wrapping & highlighting-kate version.
2011-01-06 21:04:57 -08:00
John MacFarlane
c4c336460b
RST writer: blank line after literate Haskell code block.
2011-01-06 21:03:08 -08:00
John MacFarlane
438f32cdfa
test-pandoc: Wrap to 78 columns in lhs writer tests.
2011-01-06 16:54:15 -08:00
John MacFarlane
9ff560036e
Fixed lhs-test.markdown for new wrapping.
2011-01-06 16:53:44 -08:00
John MacFarlane
aea93977f5
Markdown writer: blank line after delimited code block.
2011-01-06 16:53:21 -08:00
John MacFarlane
303ce8a9e5
LaTeX reader: allow spaces btw \\begin or \\end and {.
2011-01-06 09:34:24 -08:00
John MacFarlane
81ea1a59b4
LaTeX reader: Removed unnecessary 'spaces'.
2011-01-06 09:24:56 -08:00
John MacFarlane
1be2ca6c78
HTML reader: Fixed bug in htmlTag for comments.
2011-01-06 00:21:19 -08:00
John MacFarlane
b63a7f7c48
LaTeX reader: Apply macros to non-math; handle ensuremath.
2011-01-05 16:55:26 -08:00
John MacFarlane
18e7a7a495
LaTeX reader: Don't handle \label and \ref specially.
...
Put labels in {} instead of ().
2011-01-05 15:24:20 -08:00
John MacFarlane
1415b6831e
LaTeX reader: Support \L \l accents.
2011-01-05 14:57:06 -08:00
John MacFarlane
23aae79b01
Updated for texmath 0.5.
2011-01-05 14:44:26 -08:00
John MacFarlane
eb83f0e5e4
Fixed macro parsing.
2011-01-05 14:42:47 -08:00
John MacFarlane
e126ab9efc
LaTeX reader: Parse inside arguments when ignoring commands.
2011-01-05 12:25:47 -08:00
John MacFarlane
c3071ff6e9
LaTeX reader: Don't handle \index separately.
...
Instead, just put it in list of commands to ignore.
2011-01-05 12:05:04 -08:00
John MacFarlane
b26247a4a8
LaTeX reader: Added "index" to ignorable commands.
2011-01-05 11:56:37 -08:00
John MacFarlane
cf6cd15c27
LaTeX reader: skip space before option or argument.
2011-01-05 11:54:40 -08:00
John MacFarlane
d033fc9d3e
LaTeX reader: Skip \index commands.
2011-01-05 10:11:24 -08:00
John MacFarlane
c949530815
LaTeX reader: Removed \group (we want to parse inside {}).
2011-01-05 10:06:51 -08:00
John MacFarlane
3dab6c574c
LaTeX reader: Better handling of preamble, inc. parsing macros.
2011-01-05 09:04:03 -08:00
John MacFarlane
85bfd26b78
LaTeX reader: Parse bracketed {parts} as raw TeX.
2011-01-04 22:20:35 -08:00
John MacFarlane
22b2c02aeb
Markdown reader: Removed unneeded definitions.
...
specialChars, strChar, specialCharsMinusLt.
2011-01-04 22:11:56 -08:00
John MacFarlane
dac2e9156f
LaTeX reader: parse macros and apply to math.
2011-01-04 19:18:20 -08:00
John MacFarlane
fcbe1e95eb
Moved 'macro' and 'applyMacros'' from markdown reader to Parsing.
2011-01-04 19:12:33 -08:00
John MacFarlane
3e61333af0
Fixed regression in markdown reader.
...
'(_hi_)' was being parsed with literal underscores (no emphasis).
The fix: the 'str' parser now only parses alphanumerics and
embedded underscores. All other symbols are handled by the
'symbol' parser. This has a slight effect on the AST, since
you'll get [Str "hi",Str ":"] insntead of [Str "hi:"]. But there
should not be a visible effect in any of the writers.
Thanks to gwern for pointing out the regression.
2011-01-01 22:46:30 -08:00
John MacFarlane
0411f51433
Updated copyright notices.
2011-01-01 10:26:10 -08:00
John MacFarlane
ca7e81fd87
Updated pandoc-setup.iss.
2011-01-01 10:21:50 -08:00
John MacFarlane
a49e536fa1
New version of changelog based on relann draft.
2011-01-01 10:11:23 -08:00
John MacFarlane
a20e53ae04
Added early draft of release announcement for 1.7.
2011-01-01 10:10:57 -08:00
John MacFarlane
e9c1c1dccf
Documented -V fontsize= in markdown2pdf man page.
2011-01-01 10:10:31 -08:00
John MacFarlane
701cd71547
Updated changelog.
2011-01-01 08:40:30 -08:00
John MacFarlane
b05e739c6d
LaTeX reader: Allow ignored comments after \end{document}.
2010-12-30 22:05:19 -08:00
John MacFarlane
d6f28af9cb
HTML reader: Fixed some parsing bugs.
2010-12-30 19:33:37 -08:00
John MacFarlane
df0eecfc0e
More accurate benchmark for normalize.
2010-12-30 15:32:34 -08:00
Puneeth Chaganti
e4dedad1c0
Added support for listings package code blocks and inline code.
2010-12-30 14:37:51 -08:00