summaryrefslogtreecommitdiff
path: root/tests
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.
* HTML reader: Support base tag.John MacFarlane2015-05-13
| | | | | | | | | We only support the href attribute, as there's no place for "target" in the Pandoc document model for links. Added HTML reader test module, with tests for this feature. Closes #1751.
* 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.
* Test updates for 15d16e84567ca74c18448c60a2499e484581798f.John MacFarlane2015-05-04
|
* Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane2015-05-03
| | | | Closes #2127.
* Fixed tests for change to latex template.John MacFarlane2015-05-02
|
* Fixed regression with lists inside defintiion lists.John MacFarlane2015-04-26
| | | | | | | | | | This fixes a regression (not in any released version) on things like hi : - there Closes #2098.
* EPUB tests: don't use joinPath, which varies across platforms.John MacFarlane2015-04-22
| | | | | | | | Instead, use a forward-slash to join paths, regardless of the platform. This matches the way MediaBag now works. See https://github.com/jgm/pandoc/commit/56e4ecab20613d86a6660547ed87e7ff4b80d632#commitcomment-10858449
* MD Reader: Tests for links/footnotes after citationsNikolay Yakimov2015-04-20
| | | | In-text citation suffix clashes with links and footnotes
* Added test case for #2062.John MacFarlane2015-04-18
|
* Markdown writer: improved escaping.John MacFarlane2015-04-18
| | | | | | | | `<` 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.
* Markdown definition lists: don't require indent for first line.John MacFarlane2015-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* More principled fix for #1820.John MacFarlane2015-04-17
| | | | | | | | 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.
* Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into ↵John MacFarlane2015-04-17
|\ | | | | | | | | | | | | jlduran-latex-tightlist Conflicts: data/templates
| * LaTeX writer: Use a declaration for tight listsJose Luis Duran2014-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, pandoc has hard-coded the following in order to make tight lists in LaTeX: ```hs text "\\itemsep1pt\\parskip0pt\\parsep0pt" ``` Which is fine, but does not allow customizations. For example, the `memoir` class already has a `\tightlist` declaration for this purpose: ```tex \newcommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} ``` I'm proposing to use a similar solution: ```diff @@ In Writers/LaTeX.hs: -then text "\\itemsep1pt\\parskip0pt\\parsep0pt" +then text "\\tightlist" @@ In templates/default.latex: +\newcommand{\tightlist}{% + \setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}} ``` This allows us to customize the tightness to our needs. Backward Compatibility If a person is using a custom LaTeX template (not based upon the `memoir` class), the `\tightlist` declaration must be added.
* | Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanumJohn MacFarlane2015-04-17
|\ \ | | | | | | Allow digit as first character of a citation key.
| * | Allow digit as first character of a citation key.Matthias C. M. Troffaes2015-02-18
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Merge pull request #2079 from lierdakil/rst-normalize-headingsJohn MacFarlane2015-04-17
|\ \ \ | | | | | | | | RST Writer: Normalize headings to sequential levels
| * | | RST Writer: Tests for rubrics and heading normalizationNikolay Yakimov2015-04-16
| | | |
* | | | Merge pull request #2092 from lierdakil/issue1909John MacFarlane2015-04-17
|\ \ \ \ | | | | | | | | | | MD Reader: Smart apostrophe after inline math
| * | | | MD Reader: Test for smart `'` after inline mathNikolay Yakimov2015-04-18
| | | | |
* | | | | LaTeX template: redefine `\paragraph`, `\subparagraph`...John MacFarlane2015-04-17
|/ / / / | | | | | | | | | | | | to behave more like section headers. Closes #1658.
* / / / LaTeX template: include grffile together with graphicx.John MacFarlane2015-04-13
|/ / / | | | | | | | | | | | | This properly handles filenames containing spaces and dots. Closes #2074.
* | | Merge pull request #2072 from lierdakil/latex-reader-cleanupJohn MacFarlane2015-04-12
|\ \ \ | | | | | | | | LaTeX Reader: Code cleanup
| * | | LaTeX Reader: Test for `^^` character escapesNikolay Yakimov2015-04-13
| | | |
* | | | OpenDocument template: use `text:p` instead of `text:h` for title.John MacFarlane2015-04-12
| | | | | | | | | | | | | | | | | | | | Using `text:h` causes problems with numbering. Closes #2059. Thansk to @nkalvi for diagnosing this.
* | | | ODT Writer: Figure captions - Tests updateNikolay Yakimov2015-04-12
|/ / /
* | | RST writer: better handling of raw latex inline.John MacFarlane2015-04-07
| | | | | | | | | | | | | | | | | | | | | We use `` :raw-latex:`...` `` and add a definition for this role to the template. Closes #1961.
* | | Latex Reader: More tests for corner casesNikolay Yakimov2015-03-30
| | |
* | | Latex Reader: Test for para starting with latex macroNikolay Yakimov2015-03-30
| | |
* | | LaTeX Reader: check for block-level newcommand aliases in blockCommandNikolay Yakimov2015-03-30
| | |
* | | Merge branch 'master' of https://github.com/rootzlevel/pandoc into ↵John MacFarlane2015-03-28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rootzlevel-master Conflicts: src/Text/Pandoc/Readers/Org.hs
| * | | Org reader: Add test for image linksHans-Peter Deifel2015-02-26
| | | | | | | | | | | | | | | | | | | | Tests for image links with non-image targets, as introduced in commit 2ca5101.
* | | | Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane2015-03-28
|\ \ \ \
| * | | | Fixed typo in lhs-test.html.John MacFarlane2015-03-28
| | | | |
* | | | | Merge branch 'mpickering-errortype'John MacFarlane2015-03-28
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | 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
| | | |/ / | | |/| |
* | / | | Fixed lhs writer tests (overflow-x, not x-overflow).John MacFarlane2015-03-28
|/ / / /
* | | | Updated tests for new highlighting-kate behavior.John MacFarlane2015-03-28
| | | |
* | | | Merge pull request #1968 from lierdakil/issue1607John MacFarlane2015-03-16
|\ \ \ \ | | | | | | | | | | Fixes for multiple docx writer style bugs.
| * | | | Docx Writer: Tables testNikolay Yakimov2015-03-08
| | | | |
| * | | | Lists testNikolay Yakimov2015-03-08
| | | | |
| * | | | Initial tests for writerNikolay Yakimov2015-03-03
| | |/ / | |/| |
* | | | AsciiDoc writer: avoid wrapping after list marker.John MacFarlane2015-03-15
| | | | | | | | | | | | | | | | Closes #1858.
* | | | AsciiDoc writer: insert some needed blank lines.John MacFarlane2015-03-15
| | | | | | | | | | | | | | | | Closes #1860.
* | | | Merge pull request #1989 from zudov/shortcut_ref_link_prJohn MacFarlane2015-03-15
|\ \ \ \ | | | | | | | | | | Support shortcut reference links in markdown writer
| * | | | Support shortcut reference links in markdown writerKonstantin Zudov2015-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`).
* | | | | Org reader: add support for smart punctuationCraig S. Bosma2015-03-09
| | | | |
* | | | | 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.