summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
Commit message (Collapse)AuthorAge
...
* Removed tabs from source.John MacFarlane2015-07-10
|
* Avoid parsing partial URLs as HTML tags.John MacFarlane2015-07-10
| | | | Closes #2277.
* Tests.Readers.RST: Test metadata with inline markup tooLars-Dominik Braun2015-07-03
|
* Tests.Readers.RST: Group field list testsLars-Dominik Braun2015-07-03
|
* Readers.RST: Parse field list nameLars-Dominik Braun2015-07-03
| | | | | | “Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists
* Fix RST reference names with special charactersLars-Dominik Braun2015-06-29
|
* Org reader: drop trees with a :noexport: tagAlbert Krewinkel2015-05-23
| | | | | Trees having a `:noexport:` tag set are not exported. This mirrors default Emacs Org-Mode behavior.
* Org reader: put header tags into empty spansAlbert Krewinkel2015-05-23
| | | | | | | | | | | | | | | Org mode allows headers to be tagged: ``` org-mode * Headline :TAG1:TAG2: ``` Instead of being interpreted as part of the headline, the tags are now put into the attributes of empty spans. Spans without textual content won't be visible by default, but they are detectable by filters. They can also be styled using CSS when written as HTML. This fixes #2160.
* 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.
* Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane2015-05-03
| | | | Closes #2127.
* 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 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 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
* | MD Reader: Test for smart `'` after inline mathNikolay Yakimov2015-04-18
| |
* | LaTeX Reader: Test for `^^` character escapesNikolay Yakimov2015-04-13
| |
* | 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 '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
| | |/ | |/|
* | | 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.
* | | LaTeX reader: allow valign argument in tablesMathias Schenner2015-03-08
| | | | | | | | | | | | | | | | | | | | | | | | The `tabular` environment takes an optional parameter for vertical alignment. Previously, pandoc would fail to parse tables if this parameter was present. With this commit, the parameter is still ignored, but the table gets parsed. A test case is included.
* | | LaTeX reader: add some test cases for simple tablesMathias Schenner2015-03-08
| |/ |/|
* | Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal2015-02-21
| |
* | Docx reader: Add tests for new list style parsing.Jesse Rosenthal2015-02-19
|/
* Docx reader: test lists in table cells.Jesse Rosenthal2015-02-13
|
* Docx Reader: Add test for VML images.Jesse Rosenthal2015-01-21
| | | | | Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.
* Merge pull request #1805 from bergey/rstJohn MacFarlane2014-12-15
|\ | | | | RST Reader - Improved Role Support
| * RST Reader: compute Attrs when role is definedDaniel Bergey2014-12-12
| | | | | | | | | | | | | | | | | | | | Move recursive role lookup from renderRole to addNewRole. The Attr value will be the same for every occurance of this role, so there's no reason to compute it every time. This allows simplifying the stateRstCustomRoles map considerably. We could go even further, and remove the fmt and attr arguments to renderRole, which are null except for custom roles.
| * WIP: tests for RST rolesDaniel Bergey2014-12-12
| |
* | Merge pull request #1813 from tarleb/file-linksJohn MacFarlane2014-12-14
|\ \ | | | | | | Org reader: properly handle links to `file:target`
| * | Org reader: properly handle links to `file:target`Albert Krewinkel2014-12-14
| |/ | | | | | | | | | | | | | | Org links like `[[file:target][title]]` were not handled correctly, parsing the link target verbatim. The org reader is changed such that the leading `file:` is dropped from the link target. This is related to issues #756 and #1812.
* / Fixe autolinks with following punctuation.John MacFarlane2014-12-14
|/ | | | | | Closes #1811. The price of this is that autolinked bare URIs can no longer contain `>` characters, but this is not a big issue.
* parse RST class directivesDaniel Bergey2014-12-01
| | | | | | | | | | | | The class directive accepts one or more class names, and creates a Div value with those classes. If the directive has an indented body, the body is parsed as the children of the Div. If not, the first block folowing the directive is made a child of the Div. This differs from the behavior of rst2xml, which does not create a Div element. Instead, the specified classes are applied to each child of the directive. However, most Pandoc Block constructors to not take an Attr argument, so we can't duplicate this behavior.
* parse RST quoted literal blocksDaniel Bergey2014-12-01
| | | | | | | | | | | closes #65 RST quoted literal blocks are the same as indented literal blocks (which pandoc already supports) except that the quote character is preserved in each line. This includes test cases for the quoted literal block, as well as additional tests for line blocks and indented literal blocks, to verify that these are unaffected by the changes.
* Fixed bug in org with bulleted lists:John MacFarlane2014-11-13
| | | | | | | | | | - a - b * c was being parsed as a list, even though an unindented `*` should make a heading. See <http://orgmode.org/manual/Plain-lists.html#fn-1>.
* Merge pull request #1645 from neongreen/issue1636John MacFarlane2014-11-12
|\ | | | | Fix 'Ext_lists_without_preceding_blankline' bug.
| * Fix 'Ext_lists_without_preceding_blankline' bug.Artyom2014-09-26
| | | | | | | | | | * Fixes #1636. * Adds a test.
* | Org reader: allow empty links for gitit interopAlbert Krewinkel2014-11-05
| | | | | | | | | | | | | | | | While empty links are not allowed in Emacs org-mode, Pandoc org-mode should support them: gitit relies on empty links as they are used to create wiki links. Fixes jgm/gitit#471
* | Org reader: absolute, relative paths in linksAlbert Krewinkel2014-11-05
| | | | | | | | | | | | | | | | | | The org reader was to restrictive when parsing links, some relative links and links to files given as absolute paths were not recognized correctly. The org reader's link parsing function was amended to handle such cases properly. This fixes #1741
* | Docx test: Remove Danish header test.Jesse Rosenthal2014-10-25
| | | | | | | | | | Redundant, now that we're testing for a more generalized sort of internationalized blocks.
* | Docx reader: add tests for i18n headers.Jesse Rosenthal2014-10-25
| | | | | | | | | | This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
* | Org reader: parse LaTeX-style MathML entitiesAlbert Krewinkel2014-10-20
| | | | | | | | | | | | | | | | | | Org supports special symbols which can be included using LaTeX syntax, but are actually MathML entities. Examples for this are `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute) or `\copy` (the copyright sign ©). This fixes #1657.
* | Merge pull request #1680 from shelf/masterJohn MacFarlane2014-10-18
|\ \ | | | | | | Respect indent when parsing Org bullet lists
| * | Fix indent issue for definition listsTimothy Humphries2014-10-17
| | | | | | | | | | | | | | | Tidy up fix for #1650, #1698 as per comments in #1680. Fix same issue for definition lists with the same method.