aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Markdown.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-07-23Updated tests and removed a skipSpaces....John MacFarlane1-6/+6
we no longer need it with the change to toKey, and it is expensive to skip spaces after every inline.
2015-07-23Markdown Reader: Add basic tests for each header styleOphir Lifshitz1-0/+10
2015-07-23Markdown Reader: Add implicit header ref tests for headers with spacesOphir Lifshitz1-0/+20
2015-07-21Fix regression: allow HTML comments containing `--`.John MacFarlane1-0/+3
Technically this isn't allowed in an HTML comment, but we've always allowed it, and so do most other implementations. It is handy if e.g. you want to put command line arguments in HTML comments.
2015-07-14Markdown reader: don't allow bare URI links or autolinks in link label.John MacFarlane1-1/+12
Added test cases. Closes #2300.
2015-07-14Improved bare autolink detection.John MacFarlane1-0/+4
Previously we disallowed `-` at the end of an autolink, and disallowed the combination `=-`. This commit liberalizes the rules for allowing punctuation in a bare URI. Added test cases. One potential drawback is that you can no longer put a bare URI in em dashes like this this uri---http://example.com---is an example. But in this respect we now match github's treatment of bare URIs. Closes #2299.
2015-07-10Avoid parsing partial URLs as HTML tags.John MacFarlane1-0/+3
Closes #2277.
2015-05-03Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane1-0/+4
Closes #2127.
2015-04-26Fixed regression with lists inside defintiion lists.John MacFarlane1-0/+3
This fixes a regression (not in any released version) on things like hi : - there Closes #2098.
2015-04-20MD Reader: Tests for links/footnotes after citationsNikolay Yakimov1-0/+41
In-text citation suffix clashes with links and footnotes
2015-04-18Added test case for #2062.John MacFarlane1-0/+3
2015-04-18Markdown definition lists: don't require indent for first line.John MacFarlane1-0/+3
Previously the body of the definition (after the `:` or `~` marker) needed to be in column 4. This commit relaxes that requirement, to better match the behavior of PHP Markdown Extra. So, now this is a valid definition list: foo : bar This patch also helps resolve a potentially ambiguity with table captions: foo : bar ----- table ----- Is "bar" a definition, or the caption for the table? We'll count it as a caption for the table. Closes #2087.
2015-04-17More principled fix for #1820.John MacFarlane1-0/+3
If the tag parses as a comment, we check to see if the input starts with `<!--`. If not, it's bogus comment mode and we fail htmlTag. Includes test case. Closes #1820.
2015-04-17Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanumJohn MacFarlane1-0/+22
Allow digit as first character of a citation key.
2015-04-18MD Reader: Test for smart `'` after inline mathNikolay Yakimov1-0/+3
2015-02-18Update testsMatthew Pickering1-6/+7
2015-02-18Allow digit as first character of a citation key.Matthias C. M. Troffaes1-0/+22
* Update parser to recognize citation keys starting with a digit. * Update documentation accordingly. * Test case added. See https://github.com/jgm/pandoc-citeproc/issues/97
2014-12-14Fixe autolinks with following punctuation.John MacFarlane1-0/+5
Closes #1811. The price of this is that autolinked bare URIs can no longer contain `>` characters, but this is not a big issue.
2014-09-26Fix 'Ext_lists_without_preceding_blankline' bug.Artyom1-0/+12
* Fixes #1636. * Adds a test.
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane1-2/+2
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
2014-07-20Markdown reader: revised definition list syntax (closes #1429).John MacFarlane1-0/+41
* This change brings pandoc's definition list syntax into alignment with that used in PHP markdown extra and multimarkdown (with the exception that pandoc is more flexible about the definition markers, allowing tildes as well as colons). * Lazily wrapped definitions are now allowed; blank space is required between list items; and the space before definition is used to determine whether it is a paragraph or a "plain" element. * For backwards compatibility, a new extension, `compact_definition_lists`, has been added that restores the behavior of pandoc 1.12.x, allowing tight definition lists with no blank space between items, and disallowing lazy wrapping.
2014-07-10Added failing test for issue #1121.John MacFarlane1-0/+2
2014-07-07Added test for issue #1330.John MacFarlane1-0/+6
2014-07-07Reorganized some markdown tests.John MacFarlane1-11/+9
2014-07-07Revamped raw HTML block parsing in markdown.John MacFarlane1-1/+1
- We no longer include trailing spaces and newlines in the raw blocks. - We look for closing tags for elements (but without backtracking). - Each block-level tag is its own RawBlock; we no longer try to consolidate them (though `--normalize` will do so). Closes #1330.
2014-05-04Added test for #1154.John MacFarlane1-0/+9
2013-12-19HLint: redundant parensHenry de Valence1-2/+2
Remove parens enclosing a single element.
2013-11-22Fixed bug with intraword emphasis.John MacFarlane1-0/+5
Closes #1066.
2013-09-01Markdown reader: Don't autolink a bare URI that is followed by `</a>`.John MacFarlane1-1/+4
Closes #937.
2013-06-19Added test for #882.John MacFarlane1-0/+5
2013-01-23Eliminated use of TH in test suite.John MacFarlane1-1/+1
2013-01-15Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane1-1/+1
Added tests.
2013-01-15Added lots of tests for bare URIs.John MacFarlane1-0/+91
2012-09-22Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane1-0/+2
Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
2012-09-22LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane1-0/+4
This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
2012-08-08Changes to literate haskell options.John MacFarlane1-1/+3
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
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/+107
2011-01-29Moved tests to src.John MacFarlane1-29/+0
2011-01-26Added Tests.Readers.Markdown.John MacFarlane1-0/+29