John MacFarlane
45e4c123a4
Moved tests to tests/, modified cabal file so lib isn't recompiled.
2012-07-26 08:37:36 -07:00
John MacFarlane
acde1e82d2
Changed reader parameters from ParserState to ReaderOptions.
2012-07-25 22:35:41 -07:00
John MacFarlane
856aa8c244
Moved stateLiterateHaskell to readerLiterateHaskell in Options.
2012-07-25 22:05:06 -07:00
John MacFarlane
1dba82f25e
Got rid of stateStandalone, which was hardly used anyway.
...
The only possible effect will be with rst fragments that
begin with an rst title block, which will now cause the
header transform.
2012-07-25 20:08:42 -07:00
John MacFarlane
dfa19061ab
Options -> ReaderOptions.
...
Better to keep reader and writer options separate.
2012-07-25 11:08:06 -07:00
John MacFarlane
da3702357d
Put smart, strict in separate options field in state.
...
This is the beginning of a larger transition that will make
Options, not ParserState, the parameter of the read functions.
(Options will also be used in writers, in place of WriterOptions.)
Next step is to remove strict, replacing it with granular
tests for different extensions.
2012-07-25 10:45:45 -07:00
John MacFarlane
1f20f77712
Changed infix level of testing combinators.
...
This avoids clash with (<>), which is defined in Data.Monoid
as having infix 6.
2012-02-05 13:23:06 -08:00
John MacFarlane
a579e2c892
Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.
2011-12-27 15:45:34 -08:00
John MacFarlane
765a777582
Added some failing test cases for apostrophes in French.
2011-12-26 23:03:20 -08:00
John MacFarlane
78816497f3
Use pandoc-types 1.9.*.
2011-12-13 14:29:07 -08:00
John MacFarlane
7512c9dd12
Fixed tests for escapes in markdown titles, URLs.
2011-12-05 21:33:40 -08:00
John MacFarlane
e021819ade
Fixed tests for escapes in links.
2011-12-05 21:13:06 -08:00
John MacFarlane
b2c58c11b2
Added more failing tests relating to issue #312 .
2011-12-05 19:07:17 -08:00
John MacFarlane
a4364b3784
Added failing test for escape in markdown link title.
2011-12-04 22:37:28 -08:00
John MacFarlane
7a09873a0b
Added failing test case for issue #312 .
2011-12-01 19:47:25 -08:00
John MacFarlane
0f0c1579f8
Smart quotes: handle '...hi' properly.
...
Also added test case.
2011-07-25 23:49:45 -07:00
John MacFarlane
9b5f1cba21
Fixed test, added another markdown emph/strong test.
2011-06-22 20:37:57 -07:00
John MacFarlane
5611057e06
Added failing test case due to Perry Wagle.
2011-06-22 20:18:32 -07:00
John MacFarlane
b42c48e919
Disallow notes within notes in reST and markdown.
...
These previously caused infinite looping and stack overflows.
For example:
[^1]
[^1]: See [^1]
Note references are allowed in reST notes, so this isn't a full
implementation of reST. That can come later. For now we need to
prevent the stack overflows.
Partially resolves Issue #297 .
2011-04-20 11:42:27 -07:00
John MacFarlane
eebd77829c
Markdown+lhs reader: Require space after inverse bird tracks.
...
The point of the change is to allow html tags to be used freely
at the left margin of a markdown+lhs document.
Thanks to Conal Elliot for the suggestion.
2011-03-02 12:47:17 -08:00
John MacFarlane
c686010a92
Added cCommented-out round-trip property in markdown reader test.
2011-02-04 18:33:08 -08:00
John MacFarlane
d4b71a6423
Markdown reader: Simplified and corrected footnote block parser.
2011-02-01 22:35:27 -08:00
John MacFarlane
1edeea5d60
Added a (failing) test for footnotes.
2011-02-01 07:37:22 -08:00
John MacFarlane
e898f0abef
Improved fix to markdown noteBlock parser.
...
The last patch did not handle cases with > 4 spaces.
Also added a more general test case.
2011-01-31 20:42:49 -08:00
John MacFarlane
f282b462bb
Markdown reader: Fixed whitespace footnote bug (Jesse Rosenthal).
...
The problem was in input like this:
[^1]: note
not in note.
Also added a test case for this.
2011-01-31 20:05:11 -08:00
John MacFarlane
570d8ff08c
Moved tests to src.
2011-01-29 11:24:16 -08:00