John MacFarlane
fe6d43b3e0
Merge pull request #1601 from jkr/windowsfix
...
Fix path-slashes inside archive for windows
2014-09-27 16:21:17 -07:00
Matthew Pickering
fa2d11c954
Update tests for #1649
2014-09-27 22:40:25 +01:00
mpickering
c0b9ad4c5d
EPUB Tests: Seperating image testing from other features
2014-09-25 13:33:25 +01:00
mpickering
cc07d0c6bf
Shared: Make collapseFilePath OS-agnostic
2014-09-25 12:42:53 +01:00
John MacFarlane
0de27f3579
Updated tests for #1616 change.
2014-09-09 10:09:05 -07:00
Jesse Rosenthal
8d22bf26ab
LaTeX writer: Test for protecting images in header.
2014-09-09 11:05:47 -04:00
Jesse Rosenthal
f56e0e958a
Docx reader: Add test for polyglot headers.
...
Only Danish at the moment.
2014-09-05 22:07:06 -04:00
Jesse Rosenthal
313355e373
Org reader: Update Tests
...
Test for markup after blank line.
2014-09-04 19:55:53 -04:00
Jesse Rosenthal
08359c44e4
Docx Reader: Add tests for numbered headers.
2014-09-04 19:39:49 -04:00
Jesse Rosenthal
a6eead7f26
Docx reader: Modify mediabag test accordingly.
2014-09-02 14:05:54 -04:00
John MacFarlane
3533218d6d
Merge pull request #1594 from jkr/itemFix
...
Item fix
2014-08-31 19:31:38 -07:00
Jesse Rosenthal
dfc8ab5a6a
LaTeX writer: Add tests for header-in-item.
2014-08-31 16:05:20 -04:00
John MacFarlane
598d3ee23b
Markdown reader: better handling of paragraph in div.
...
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-08-31 12:55:47 -07:00
John MacFarlane
374bb3c147
DokuWiki writer: Make tables prettier by aligning columns.
...
Also cleaned up crufty code and added tests.
2014-08-30 21:24:33 -07:00
John MacFarlane
a8273009ba
Textile reader: Improved table support.
...
We can now handle all different alignment types, for simple
tables only (no captions, no relative widths, cell contents just
plain inlines). Other tables are still handled using raw HTML.
Addresses #1585 as far as it can be addresssed, I believe.
2014-08-30 20:34:42 -07:00
Jesse Rosenthal
4eb9769a4c
Dokuwiki writer: Add a test for multiblock table cells.
...
We have to add a new file, because the original table tests don't look
for this.
2014-08-30 15:34:40 -04:00
John MacFarlane
218633548f
Merge pull request #1574 from jlduran/latex-horizontal-rule
...
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29 21:40:55 -07:00
John MacFarlane
017d44af1d
Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into jlduran-ugly-tables
2014-08-29 21:24:36 -07:00
Jose Luis Duran
4c684561ee
LaTeX writer: Add \strut
to fix multiline tables
...
See: http://tex.stackexchange.com/questions/34971
2014-08-29 13:54:08 +00:00
Jesse Rosenthal
3b5a868533
Docx reader: update tests for new table behavior.
2014-08-28 14:39:04 -04:00
Jose Luis Duran
1fc665c07d
LaTeX writer: Make Horizontal Rules more flexible
...
Currently, pandoc has hard-coded the following in order to make horizontal
rules in LaTeX:
```hs
"\\begin{center}\\rule{3in}{0.4pt}\\end{center}"
```
Which is fine, but does not allow customizations. It also does not take into
consideration the current line width.
I'm proposing this change:
```diff
@@ In Writers/LaTeX.hs:
-"\\begin{center}\\rule{3in}{0.4pt}\\end{center}"
+"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}"
```
2014-08-28 03:12:37 +00:00
Jose Luis Duran
f1d330b7b5
LaTeX writer: Fix tables
...
- [x] Fix a bug introduced in 66378062b6
, which
causes the table caption to repeat across all pages
- [x] Address the issues discussed
[here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J )
regarding the extra vertical space.
- [ ] NOTE: This will cause multiline table cells to appear unpadded. See
http://tex.stackexchange.com/questions/34971
- [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796 )
instead of `\\`.
2014-08-28 02:02:20 +00:00
John MacFarlane
17f71002ae
Merge pull request #1553 from mpickering/master
...
Txt2Tags reader: Header is now parsed only if standalone flag is set
2014-08-21 16:42:28 -07:00
mpickering
2a7319541d
Txt2Tags Reader: Parse Meta information
...
The header is now parsed as meta information. The first line is the
`title`, the second is the `author` and third line is the `date`.
2014-08-21 17:09:40 +01:00
mpickering
2cd049a1bf
Txt2Tags reader: Header is now parsed only if standalone flag is set
2014-08-20 18:11:37 +01:00
John MacFarlane
13469af843
More test updates.
2014-08-20 09:47:47 -07:00
John MacFarlane
7e69f4a4fa
Updated tests.
2014-08-20 09:23:19 -07:00
John MacFarlane
9d52ecdd42
HTML reader: Parse appropriately styled span as SmallCaps.
2014-08-16 22:57:00 -07:00
Jesse Rosenthal
180f5cbe63
Docx reader: Test for character styles.
2014-08-16 14:05:56 -04:00
John MacFarlane
8bf39cf6d6
Markdown reader: Better handle quote characters in inline links.
...
This was previously failing to be recognized as a link:
[Test](http://en.wikipedia.org/wiki/Ward's_method )
Closes #1534 .
2014-08-14 10:59:27 -07:00
John MacFarlane
e917bcc124
Make raw_tex
extension non-default for textile reader, writer.
...
Enable `raw_tex` extension in textile writer.
Closes #1532 .
2014-08-14 09:49:31 -07:00
John MacFarlane
76d14bcc11
Old tests: better path for test program.
2014-08-13 12:20:25 -07:00
John MacFarlane
fc17b3bd41
Make options work with test-pandoc.
2014-08-13 12:19:42 -07:00
John MacFarlane
40e67b8737
Revised tests directory.
...
Renamed some tests, introducing subsidiary directories
for fb2, docx, epub.
Cleaned up tests in cabal file.
Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
2014-08-13 11:16:50 -07:00
John MacFarlane
1d6e1cf9f3
Removed special testHook from Setup.
...
This was just too fragile and dependent on a changing Cabal API
(see #1526 ).
Instead of passing the bulid directory to the test program, we
now let the test program find itself (using executable-path)
and then find the pandoc executable relative to itself.
2014-08-13 08:12:07 -07:00
John MacFarlane
7684b24959
Merge pull request #1528 from mpickering/epubtitlepage
...
EPUB Reader: Ignores titlepage attribute
2014-08-12 16:56:38 -07:00
Matthew Pickering
063ba81622
EPUB Tests: Added wasteland test
...
This epub contains many epub:type elements including footnotes and
titlepage.
2014-08-13 00:25:18 +01:00
John MacFarlane
81157c7cc6
HTML writer: use 'uri' or 'email' class for autolinks.
...
This allows them to be styled specially.
Closes #1501 .
2014-08-12 15:49:43 -07:00
John MacFarlane
3653018a70
Added mathml tests for docbook reader.
2014-08-12 14:10:52 -07:00
John MacFarlane
f97ec6db2c
Markdown reader: Improved parsing of indented code in list items.
...
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`.
2014-08-12 11:10:48 -07:00
Jesse Rosenthal
45ec035e93
Docx reader: combine inlines properly in dropcaps.
...
Make sure that adjacent inlines are combined properly in dropcaps. This
updates the test results as well.
2014-08-11 23:31:16 -04:00
Jesse Rosenthal
0808449547
Docx: Add dropcap tests.
2014-08-11 23:10:50 -04:00
John MacFarlane
31811657fa
Merge pull request #1521 from jkr/emptyEmph
...
Discard empty formatters
2014-08-11 14:44:08 -07:00
Jesse Rosenthal
241ef57bb2
Docx reader test: Add an emphasized space to normalize test.
...
This should be ignored, so the output should be the same as the previous
test.
2014-08-11 15:11:28 -04:00
John MacFarlane
6fae136cbb
Textile reader: list and HTML block parsing improvements.
...
Closes #1513 .
Lists can now start without an intervening blank line.
Also, html block-level tags that don't start a line are parsed
as RawInline and don't interrupt paragraphs, as in RedCloth.
2014-08-11 11:22:39 -07:00
Matthew Pickering
853830d12b
Docx Parse: Updated tests
2014-08-11 10:30:32 -04:00
Matthew Pickering
f33ae631f3
Improved EPUB Tests
...
Rewrote features test to remove all unimplemented features.
There are now all three examples of where an image can be included in
the test.
1. Cover image
2. As a spine elemnt
3. In the document
Tests have also been added to make sure that the mediabag contains all
these images after processing.
2014-08-10 14:58:53 +01:00
John MacFarlane
7ec8dd956f
Removed OMath module, depend on texmath >= 0.8.
2014-08-10 06:19:41 -07:00
Matthew Pickering
ecb42cc002
Docx Tests: Updated for reading sym element
2014-08-09 22:37:12 -04:00
Matthew Pickering
5bedaba080
Added test for sym element
2014-08-09 22:37:12 -04:00