Matthew Pickering
1a7a99161a
Update tests
2015-02-18 21:09:07 +00:00
Henry de Valence
f6d151889c
HLint: redundant parens
...
Remove parens enclosing a single element.
2013-12-19 20:43:25 -05:00
John MacFarlane
9282f63278
Use registerHeader in RST and LaTeX readers.
...
This will give automatic unique identifiers, unless
`-auto_identifiers` is specified.
2013-09-01 09:13:31 -07:00
Florian Eitel
5f09cf7ff0
Write id for code block to label attr in latex when listing is used
...
The code:
~~~{#test}
asdf
~~~
gets compiled to html:
<pre id="test">
asdf
</pre>
So it is possible to link to the identifier `test`
But this doesn't happen on latex
When using the listings package (`--listings`) it is possible to set the
identifier using the `label=test` property:
\begin{lstlisting}[label=id]
hi
\end{lstlisting}
And this is exactly what this patch is doing.
Modified LaTeX Reader/Writer and added tests for this.
2013-08-22 20:15:36 +02:00
John MacFarlane
800c5490ec
LaTeX reader: Don't add spurious ", " to citation suffixes.
...
This is added when needed in Text.Pandoc.Biblio anyway.
2013-07-21 11:44:49 -07:00
John MacFarlane
cae52ecc31
Revert "LaTeX reader: citation handling changes."
...
This reverts commit f7229b1473
.
2013-03-17 08:48:29 -07:00
John MacFarlane
f7229b1473
LaTeX reader: citation handling changes.
...
Previously, a LaTeX citation would always be parsed as a Citation
element, with the raw LaTeX in the [Inline] part.
Now, the LaTeX citation is parsed as a Citation element only if
`--biblio` was specified (i.e. only if there is a nonempty set
of references in readerReferences). Otherwise it is parsed as
raw LaTeX.
This will make it possible to simplify some things in the markdown
writer. It also makes the LaTeX reader behave more like the Markdown
reader.
2013-03-09 10:33:25 -08:00
John MacFarlane
06300e59d5
Removed citationSuppressParens.
...
Makefile: Use citeproc-0.3.6 release.
2012-10-28 09:36:15 -07:00
John MacFarlane
6f2347635c
LaTeX reader: Initialize citationSuppressParens field.
2012-10-22 19:17:00 -07:00
John MacFarlane
cfab8eaecb
Revert "LaTeX reader: Use new suppressParens option for footnote citations."
...
This reverts commit 7499499b68
.
Conflicts:
src/Text/Pandoc/Readers/LaTeX.hs
2012-10-21 23:16:23 -07:00
John MacFarlane
7499499b68
LaTeX reader: Use new suppressParens option for footnote citations.
...
Also changed Biblio, Markdown reader, and LaTeX reader tests because
of new citationSuppressParens field in Citation.
2012-10-15 19:53:57 -07:00
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
570d8ff08c
Moved tests to src.
2011-01-29 11:24:16 -08:00
John MacFarlane
d8c9b0c6f7
Added biblatex citation tests to Tests.Readers.LaTeX.
...
Removed old biblatex-citations.latex.
2011-01-29 09:01:30 -08:00
John MacFarlane
7961208aaf
Added natbib citation tests to Tests.Readers.LaTeX.
...
Removed old tests/natbib-citations.latex.
2011-01-29 08:47:00 -08:00
John MacFarlane
b9356fcc7e
Removed deliberate error in LaTeX reader tests.
2011-01-22 16:01:14 -08:00
John MacFarlane
5a1abbe7ac
Fixed -Wall error in imports.
2011-01-22 13:40:18 -08:00
John MacFarlane
209b300d6a
Added 'property' in Tests.Helpers & some quickcheck tests.
2011-01-22 12:18:59 -08:00
John MacFarlane
15250859c3
Improved test framework.
...
Now there is a uniform interface for reader and writer tests.
Also added a quasiquoter, for multiline strings.
2011-01-22 10:50:15 -08:00
John MacFarlane
e5e2b0f9ab
Fixed the two test cases that were intentionally set to fail.
2011-01-20 22:38:16 -08:00
John MacFarlane
831889bebc
Unit tests: On failure, print the input string.
2011-01-19 09:38:14 -08:00
John MacFarlane
608d5bc753
Added normalize in latex reader tests.
2011-01-18 23:37:54 -08:00
John MacFarlane
0502c0fd28
Revamped tests with new =: and =?> operators + builder.
...
Left in a couple failing tests for demonstration purposes.
2011-01-18 23:34:34 -08:00
John MacFarlane
75e8ab25ef
Adjusted source to 80-column limit.
2011-01-13 11:11:55 -08:00
John MacFarlane
4ccd30fe3e
Moved Tests.Shared -> Tests.Helpers.
...
Tests.Shared would be the natural place to put tests for functions
in Text.Pandoc.Shared.
2011-01-13 10:59:44 -08:00
Nathan Gass
e61348dc11
Reordered test files.
2011-01-12 19:12:54 +01:00