summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/LaTeX.hs
Commit message (Collapse)AuthorAge
* Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane2016-10-24
| | | | [API change]
* Remove Tests.ArbitraryJesse Rosenthal2016-10-14
| | | | Use exported Arbitrary instances from pandoc-types instead.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* LaTeX Reader: Test for `^^` character escapesNikolay Yakimov2015-04-13
|
* Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ | | | | | | | | | | | | | | | | | | | | mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
| * Update testsMatthew Pickering2015-02-18
| |
* | LaTeX reader: allow non-empty colsep in tablesMathias Schenner2015-03-08
| | | | | | | | | | | | | | | | The `tabular` environment allows non-empty column separators with the "@{...}" syntax. Previously, pandoc would fail to parse tables if a non-empty colsep was present. With this commit, these separators are still ignored, but the table gets parsed. A test case is included.
* | LaTeX reader: allow valign argument in tablesMathias Schenner2015-03-08
| | | | | | | | | | | | | | | | The `tabular` environment takes an optional parameter for vertical alignment. Previously, pandoc would fail to parse tables if this parameter was present. With this commit, the parameter is still ignored, but the table gets parsed. A test case is included.
* | LaTeX reader: add some test cases for simple tablesMathias Schenner2015-03-08
|/
* HLint: redundant parensHenry de Valence2013-12-19
| | | | Remove parens enclosing a single element.
* Use registerHeader in RST and LaTeX readers.John MacFarlane2013-09-01
| | | | | This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
* Write id for code block to label attr in latex when listing is usedFlorian Eitel2013-08-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane2013-07-21
| | | | This is added when needed in Text.Pandoc.Biblio anyway.
* Revert "LaTeX reader: citation handling changes."John MacFarlane2013-03-17
| | | | This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
* LaTeX reader: citation handling changes.John MacFarlane2013-03-09
| | | | | | | | | | | | | | 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.
* Removed citationSuppressParens.John MacFarlane2012-10-28
| | | | Makefile: Use citeproc-0.3.6 release.
* LaTeX reader: Initialize citationSuppressParens field.John MacFarlane2012-10-22
|
* Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane2012-10-21
| | | | | | | | This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
* LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane2012-10-15
| | | | | Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
* Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane2012-07-26
|
* Moved tests to src.John MacFarlane2011-01-29
|
* Added biblatex citation tests to Tests.Readers.LaTeX.John MacFarlane2011-01-29
| | | | Removed old biblatex-citations.latex.
* Added natbib citation tests to Tests.Readers.LaTeX.John MacFarlane2011-01-29
| | | | Removed old tests/natbib-citations.latex.
* Removed deliberate error in LaTeX reader tests.John MacFarlane2011-01-22
|
* Fixed -Wall error in imports.John MacFarlane2011-01-22
|
* Added 'property' in Tests.Helpers & some quickcheck tests.John MacFarlane2011-01-22
|
* Improved test framework.John MacFarlane2011-01-22
| | | | | Now there is a uniform interface for reader and writer tests. Also added a quasiquoter, for multiline strings.
* Fixed the two test cases that were intentionally set to fail.John MacFarlane2011-01-20
|
* Unit tests: On failure, print the input string.John MacFarlane2011-01-19
|
* Added normalize in latex reader tests.John MacFarlane2011-01-18
|
* Revamped tests with new =: and =?> operators + builder.John MacFarlane2011-01-18
| | | | Left in a couple failing tests for demonstration purposes.
* Adjusted source to 80-column limit.John MacFarlane2011-01-13
|
* Moved Tests.Shared -> Tests.Helpers.John MacFarlane2011-01-13
| | | | | Tests.Shared would be the natural place to put tests for functions in Text.Pandoc.Shared.
* Reordered test files.Nathan Gass2011-01-12