aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
2016-10-14Remove Tests.ArbitraryJesse Rosenthal1-1/+1
Use exported Arbitrary instances from pandoc-types instead.
2016-10-11Markdown writer: add test for note placement.Jesse Rosenthal1-2/+138
2016-07-14Removed some redundant class constraints.John MacFarlane1-1/+1
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-1/+0
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-0/+1
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-04-18Markdown writer: improved escaping.John MacFarlane1-2/+2
`<` should not be escaped as `\<`, for compatibility with original Markdown. We now escape `<` and `>` with entities. Also, we now backslash-escape square brackets. Closes #2086.
2015-03-10Support shortcut reference links in markdown writerKonstantin Zudov1-1/+90
Issue #1977 Most markdown processors support the [shortcut format] for reference links. Pandoc's markdown reader parsed this shortcuts unoptionally. Pandoc's markdown writer (with --reference-links option) never shortcutted links. This commit adds an extension `shortcut_reference_links`. The extension is enabled by default for those markdown flavors that support reading shortcut reference links, namely: - pandoc - strict pandoc - github flavoured - PHPmarkdown If extension is enabled, reader parses the shortcuts in the same way as it preveously did. Otherwise it would parse them as normal text. If extension is enabled, writer outputs shortcut reference links unless doing so would cause problems (see test cases in `tests/Tests/Writers/Markdown.hs`).
2013-11-30Markdown writer: Fix rendering of tight sublists.John MacFarlane1-0/+4
E.g. - foo - bar - baz Previously a spurious blank line was included before the last item. Closes #1050.
2013-01-23Eliminated use of TH in test suite.John MacFarlane1-1/+1
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-1/+1
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane1-0/+34