John MacFarlane
25e2c42347
RST writer: Omit blank lines after list items.
...
They are optional in RST (except after the last list item,
of course).
Fixes #1777 .
2014-11-25 12:24:33 -08:00
John MacFarlane
9e5a8de95a
Removed extra </body>
tag from tests/html-reader.html
.
2014-11-16 20:46:45 -08:00
John MacFarlane
46d343f474
Fixed bug in org with bulleted lists:
...
- 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 >.
2014-11-13 23:40:18 -08:00
Caleb McDaniel
bd245450c4
Add tests for external links with anchors
2014-11-13 00:42:58 -05:00
John MacFarlane
43c1978fae
Merge pull request #1645 from neongreen/issue1636
...
Fix 'Ext_lists_without_preceding_blankline' bug.
2014-11-12 09:05:29 -08:00
Albert Krewinkel
e6cd8c9077
Org reader: allow empty links for gitit interop
...
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
2014-11-05 23:15:28 +01:00
Albert Krewinkel
daaf635806
Org reader: absolute, relative paths in links
...
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
2014-11-05 22:27:25 +01:00
John MacFarlane
f3ac41937d
DokuWiki writer: Better handling of block quotes.
...
This change ensures that multiple paragraph blockquotes are
rendered using native `>` rather than as HTML.
Closes #1738 .
2014-11-04 14:52:19 -08:00
Alexander Sulfrian
79f25fb9ce
TWiki Reader: add basic syntax test
2014-10-30 20:02:05 +01:00
Jesse Rosenthal
60846471a3
Docx test: Remove Danish header test.
...
Redundant, now that we're testing for a more generalized sort of
internationalized blocks.
2014-10-25 16:02:31 -04:00
Jesse Rosenthal
c0ddcb359e
Docx reader: add tests for i18n headers.
...
This tests blockquotes and headers in Russian. Previous tests make sure
that this doesn't produce a regression in en-us Header and Blockquotes.
2014-10-25 16:00:27 -04:00
John MacFarlane
e16683b539
HTML writer: Make header attributes work outside top level.
...
Previously they only appeared on top level header elements.
Now they work e.g. in blockquotes.
Closes #1711 .
2014-10-23 10:27:14 -07:00
John MacFarlane
78bdc08de7
Merge pull request #1706 from tarleb/org-symbol-entities
...
Org reader: parse LaTeX-style MathML entities
2014-10-21 10:11:19 -07:00
John MacFarlane
7f6bbfadf4
Pretty: Make CR + BLANKLINE = BLANKLINE.
...
This fixes an extra blank line we were getting at the end
of markdown fragments (as well as rst, org, etc.)
Closes #1705 .
2014-10-20 20:26:08 -07:00
Albert Krewinkel
a5eb02f6a7
Org reader: parse LaTeX-style MathML entities
...
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 .
2014-10-20 22:57:36 +02:00
John MacFarlane
d7169c715d
Parsing: fixed inlineMath
so it handles \text{..}
containing $
.
...
For example: `$x = \text{the $n$th root of $y$}`. Closes #1677 .
2014-10-19 16:42:56 -07:00
John MacFarlane
84f6b1e41a
Merge pull request #1680 from shelf/master
...
Respect indent when parsing Org bullet lists
2014-10-18 13:20:27 -07:00
John MacFarlane
31713d572a
Merge pull request #1700 from tarleb/org-emphasis-fix
...
Org reader: fix rules for emphasis recognition
2014-10-18 13:19:42 -07:00
Albert Krewinkel
e3c36ed6ce
Org reader: Drop COMMENT document trees
...
Document trees under a header starting with the word `COMMENT` are
comment trees and should not be exported. Those trees are dropped
silently.
This closes #1678 .
2014-10-18 22:11:53 +02:00
Albert Krewinkel
d571bec454
Org reader: fix rules for emphasis recognition
...
Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
strings. This is wrong, as `,` and `'` are forbidden border chars and
may not occur on the inner border of emphasized text. This patch
enables the reader to matches the reference implementation in that it
reads the above strings as plain text.
2014-10-18 12:47:59 +02:00
Timothy Humphries
f1f56e8533
Fix indent issue for definition lists
...
Tidy up fix for #1650 , #1698 as per comments in #1680 .
Fix same issue for definition lists with the same method.
2014-10-17 20:06:25 -04:00
Timothy Humphries
4f4b0f031d
Respect indent when parsing Org bullet lists
...
Fixes issue with top-level bullet list parsing.
Previously we would use `many1 spaceChars` rather than respecting
the list's indent level. We also permitted `*` bullets on unindented
lists, which should unambiguously parse as `header 1`.
Combined, this meant headers at a different indent level were
being unwittingly slurped into preceding bullet lists, as per
Issue #1650 .
2014-10-12 03:18:36 -04:00
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
Artyom
bc115ffc2d
Fix 'Ext_lists_without_preceding_blankline' bug.
...
* Fixes #1636 .
* Adds a test.
2014-09-26 13:32:08 +04: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