aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
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