summaryrefslogtreecommitdiff
path: root/tests/markdown-reader-more.txt
Commit message (Collapse)AuthorAge
* Markdown reader: Made implicit header references case-insensitive.John MacFarlane2015-05-13
| | | | | | | | | Added `stateHeaderKeys` to `ParserState`; this is a `KeyTable` like `stateKeys`, but it only gets consulted if we don't find a match in `stateKeys`, and if `Ext_implicit_header_references` is enabled. Closes #1606.
* Fixed regression in charsInBalancedBrackets.John MacFarlane2015-05-13
| | | | | | | | | | | Introduced by e9d7504. This regression caused link and image references containing raw tex not to parse correctly. Added test. Closes #2150.
* Markdown writer: Avoid introducing spurious list items through wrapping.John MacFarlane2015-02-25
| | | | Closes #1946.
* Don't treat a citation as a reference link label.John MacFarlane2014-12-15
| | | | Closes #1763.
* HTML writer: Make header attributes work outside top level.John MacFarlane2014-10-23
| | | | | | | Previously they only appeared on top level header elements. Now they work e.g. in blockquotes. Closes #1711.
* Parsing: fixed `inlineMath` so it handles `\text{..}` containing `$`.John MacFarlane2014-10-19
| | | | For example: `$x = \text{the $n$th root of $y$}`. Closes #1677.
* Markdown reader: Better handle quote characters in inline links.John MacFarlane2014-08-14
| | | | | | | | This was previously failing to be recognized as a link: [Test](http://en.wikipedia.org/wiki/Ward's_method) Closes #1534.
* Markdown reader: Improved parsing of indented code in list items.John MacFarlane2014-08-12
| | | | | | | | Indented code at the beginning of a list item must be indented eight spaces from the margin (or from the edge of the container), or four spaces past the list marker, whichever is farther. Some examples in `tests/markdown-reader-more.txt`.
* Markdown reader: inline math must have nonspace before final `$`.John MacFarlane2014-05-27
| | | | Closes #1313.
* Fixed empty reference links. Closes #1186.John MacFarlane2014-05-02
| | | | Includes test.
* Added a test for #833.John MacFarlane2013-06-19
|
* Markdown reader: don't lose parentheses in URLs.John MacFarlane2013-03-13
| | | | Added tests. This fixes a regression from 1.10.x. Closes #786.
* Make `implicit_header_references` work with explicit header ids.John MacFarlane2013-02-21
| | | | (Markdown reader.)
* Allow `&` in emails (for entities).John MacFarlane2013-02-15
| | | | | Added tests for entities in titles and links. Closes #723.
* Markdown/RST reader: Skip blank lines.John MacFarlane2013-01-27
| | | | | | | This fixes a subtle regression involving grid tables with empty cells. Closes #732. Also added test for grid table with empty cells.
* Markdown reader: Fixed bug with headerless grid tables.John MacFarlane2013-01-21
| | | | | | | | | The 1.10 code assumed that each table header cell contains exactly one block. That failed for headerless tables (0) and also for tables with multiple blocks in a header cell. The code is fixed and tests provided. Thanks to Andrew Lee for pointing out the bug.
* Added tests for markdown line blocks and explicit header attributes.John MacFarlane2013-01-13
|
* Added tests for implicit header references.John MacFarlane2013-01-03
|
* Markdown reader: Fix parsing of consecutive lists.John MacFarlane2012-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Pandoc previously behaved like Markdown.pl for consecutive lists of different styles. Thus, the following would be parsed as a single ordered list, rather than an ordered list followed by an unordered list: 1. one 2. two - one - two This patch makes pandoc behave more sensibly, parsing this as two lists. Any change in list type (ordered/unordered) or in list number style will trigger a new list. Thus, the following will also be parsed as two lists: 1. one 2. two a. one b. two Since we regard this as a bug in Markdown.pl, and not something anyone would ever rely on, we do not preserve the old behavior even when `--strict` is selected.
* Markdown reader: Allow linebreaks in URLs (treat as spaces).John MacFarlane2010-12-10
| | | | | | Also, a string of consecutive spaces or tabs is now parsed as a single space. If you have multiple spaces in your URL, use %20%20.
* Markdown reader: handle curly quotes better.John MacFarlane2010-12-06
| | | | | | | | Previously, curly quotes were just parsed literally, leading to problems in some output formats. Now they are parsed as Quoted inlines, if --smart is specified. Resolves Issue #270.
* Fix regression: markdown references should be case-insensitive.John MacFarlane2010-12-05
| | | | | | | | | | | | | | | | This broke when we added the Key type. We had assumed that the custom case-insensitive Ord instance would ensure case-insensitive matching, but that is not how Data.Map works. * Added a test case for case-insensitivity in markdown-reader-more * Removed old refsMatch from Text.Pandoc.Parsing module; * hid the 'Key' constructor; * dropped the custom Ord and Eq instances, deriving instead; * added fromKey and toKey to convert between Keys and Inline lists; * toKey ensures that keys are case-insensitive, since this is the only way the API provides to construct a Key. Resolves Issue #272.
* Added test for macros.John MacFarlane2010-10-26
|
* Added tests for example lists.John MacFarlane2010-07-12
|
* Added multilingual URL tests for markdown reader.John MacFarlane2010-03-23
|
* Disallow blank lines in inline code span.fiddlosopher2010-03-06
| | | | | | Also added additional test cases for markdown code spans. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1860 788f1e2b-df1e-0410-8736-df70ead52e1b
* Allow multi-line titles and authors in meta block.fiddlosopher2010-02-28
| | | | | | | | | | | | | | Based on a patch by Justin Bogner. Titles may span multiple lines, provided continuation lines begin with a space character. Separate authors may be put on multiple lines, provided each line after the first begins with a space character. Each author must fit on one line. Multiple authors on a single line may still be separated by a semicolon. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1854 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: Treat a backslash followed by a newline as hard linebreak.fiddlosopher2009-12-05
| | | | | | Resolves Issue #154. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1646 788f1e2b-df1e-0410-8736-df70ead52e1b
* Properly handle commented-out list items in markdown.fiddlosopher2009-11-01
| | | | | | | | | | | | | Example: - a <!-- - b --> - c Resolves Issue #142. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1615 788f1e2b-df1e-0410-8736-df70ead52e1b
* Fix inline math parser so that \$ is allowed in math.fiddlosopher2009-10-12
| | | | | | Resolves Issue #169. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1609 788f1e2b-df1e-0410-8736-df70ead52e1b
* Gobble space after Plain blocks containing only raw html inline.fiddlosopher2009-01-31
| | | | | | | | | Otherwise following header blocks are not parsed correctly, since the parser sees blank space before them. Resolves Issue #124. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1534 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: Allow blank space at end of horizontal rules.fiddlosopher2008-11-01
| | | | git-svn-id: https://pandoc.googlecode.com/svn/trunk@1480 788f1e2b-df1e-0410-8736-df70ead52e1b
* Markdown reader: cleaner handling of spaces in URLs.fiddlosopher2008-11-01
| | | | | | | | Consecutive spaces are now collapsed into one %20, and final spaces are removed. Also, a test case has been added. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1477 788f1e2b-df1e-0410-8736-df70ead52e1b
* Parse raw ConTeXt environments as TeX in markdown reader.fiddlosopher2008-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | Resolves Issue #73. Also made some structural changes to parsing of raw LaTeX environments. Previously there was a special block parser for LaTeX environments. It returned a Para element containing the raw TeX inline. This has been removed, and the raw LaTeX environment parser is now used in the rawLaTeXInline parser. The effect is exactly the same, except that we can now handle consecutive LaTeX and ConTeXt environments not separated by spaces. This new flexibility is required by the example in Issue #73: \placeformula \startformula L_{1} = L_{2} \stopformula API change: The LaTeX reader now exports rawLaTeXEnvironment' (which returns a string) rather than rawLaTeXEnvironment (which returns a block element). This is more likely to be useful in other applications. Added test cases for raw ConTeXt environments to markdown-reader-more.txt. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1405 788f1e2b-df1e-0410-8736-df70ead52e1b
* Allow newline before URL in markdown link references. Resolves Issue #81.fiddlosopher2008-08-10
Added tests for this issue in new "markdown-reader-more" tests. Changed RunTests.hs to run these tests. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1401 788f1e2b-df1e-0410-8736-df70ead52e1b