Sidharth Kapur
ff489a59f4
Add one more test
2016-05-01 22:36:19 -05:00
Sidharth Kapur
d7bc8c0632
Use codeBlockWith
2016-05-01 22:32:26 -05:00
Sidharth Kapur
72d1900b30
Add test for RST code directive class
2016-05-01 22:23:33 -05:00
Ivo Clarysse
fd36e6b64a
Docbook5 writer: Properly handle ulink/link
2016-04-29 16:06:55 -07:00
Ivo Clarysse
271cb4d845
Add docbook5 writer support
2016-04-29 14:00:46 -07:00
John MacFarlane
32f1b0a5f1
Revert "LaTeX writer: Add \strut
to fix multiline tables"
...
This reverts commit 4c684561ee
.
See
https://groups.google.com/d/msg/pandoc-discuss/u6J-_aCProU/UufN3IYRAgAJ
This should fix uneven spacing issues in multiline tables.
2016-04-27 17:25:45 -07:00
John MacFarlane
ece215ed7d
Merge pull request #2735 from mb21/patch-1
...
LaTeX Writer: fix polyglossia to babel env mapping
2016-04-26 23:09:02 -07:00
John MacFarlane
cc0527bf31
Merge pull request #2829 from adunning/patch-1
...
LaTeX writer: Add missing languages.
2016-04-26 23:08:15 -07:00
Emanuel Evans
1bfe39e24c
Ignore leading space in org code blocks
...
Fixes #2862
Also fix up tab handling for leading whitespace in code blocks.
2016-04-26 10:29:59 -07:00
Jesse Rosenthal
5c24e66c16
Docx Reader: Tests for track-changes moving
2016-04-16 08:39:25 -04:00
John MacFarlane
4b49f923cb
Markdown reader: Fix pandoc title blocks with lines ending in 2 spaces.
...
Closes #2799 .
Also added -s to markdown-reader-more test.
2016-04-10 09:13:53 -07:00
Andrew Dunning
9765ef2ce6
LaTeX writer: Add missing languages.
...
Updates the list from the hyphenation files at <http://mirror.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/loadhyph/ >.
2016-04-01 16:47:33 +01:00
Mauro Bieg
44f95484a4
LaTeX Writer: fix polyglossia to babel env mapping
...
allow for optional argument in square brackets, closes #2728
2016-03-20 19:17:30 +01:00
Jesse Rosenthal
7f4a40474c
Docx reader: Add test for enumerated headers.
...
We don't want them to turn into a list.
2016-03-16 12:56:17 -04:00
John MacFarlane
a485c42d78
Fixed behavior of base tag.
...
+ If the base path does not end with slash, the last component
will be replaced. E.g. base = `http://example.com/foo `
combines with `bar.html` to give `http://example.com/bar.html `.
+ If the href begins with a slash, the whole path of the base
is replaced. E.g. base = `http://example.com/foo/ ` combines
with `/bar.html` to give `http://example.com/bar.html `.
Closes #2777 .
2016-03-10 19:59:55 -08:00
John MacFarlane
2b55b76ebe
Markdown reader: Improved pipe table parsing.
...
Fixes #2765 .
Added test case.
2016-03-09 11:46:00 -08:00
John MacFarlane
6bfaa5ad15
DokuWiki writer: use $$ for display math.
2016-03-08 10:08:14 -08:00
John MacFarlane
29706ee02d
Merge pull request #2646 from tarleb/org-figure-with-no-name
...
Prefix even empty figure names with "fig:"
2016-02-20 21:44:39 -08:00
John MacFarlane
649cfb61b8
Merge pull request #2668 from monofon/fix/yaml-metadata-block-bottom-line
...
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-02-20 21:43:15 -08:00
John MacFarlane
e369e60fb4
Merge pull request #2691 from tarleb/org-image-file-links
...
Org reader: Refactor link-target processing
2016-02-20 21:42:12 -08:00
John MacFarlane
93a05dffd3
HTML writer: don't include alignment attribute for default table columns.
...
Previously these were given "left" alignment. Better to leave off
alignment attributes altogether.
Closes #2694 .
2016-02-03 13:31:21 -08:00
Jesse Rosenthal
7a10507dc8
Docx reader: Add tests for adjacent hyperlinks.
2016-02-02 14:53:01 -05:00
Albert Krewinkel
92e6ae47f6
Org reader: Refactor link-target processing
...
Cleanup of the code for link target handling. Most notably, the
canonicalization of a link is handled by a separate function.
This fixes #2684 .
2016-01-31 23:23:09 +01:00
John MacFarlane
a1021bdda6
Textile reader: Support >
, <
, =
, <>
text alignment attributes.
...
Closes #2674 .
2016-01-25 09:34:49 -08:00
John MacFarlane
2a2e3d99d2
Added old-style tests for TEI writer (tests/tables.tei, tests/writer.tei).
2016-01-21 15:44:56 -08:00
John MacFarlane
3b39b16a4b
Merge pull request #2638 from c-forster/teiwriter
...
Add TEI Writer.
2016-01-21 15:23:50 -08:00
Henrik Tramberend
556d0c1810
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-01-21 12:44:16 +01:00
John MacFarlane
7ea4d17509
Adjusted longtable in tests.
...
New default is not to include `[c]` option.
2016-01-20 09:59:35 -08:00
John MacFarlane
4d74a966c4
Added some entity tests in Markdown reader tests.
...
Change types of divs.
From Docbook "sect#" and "simplesect" to "level#" and
"section."
Add tests.
Add mention of TEI to README.
Small changes to TEI writer.
2016-01-19 14:03:57 -05:00
csforste
25a9ca697a
Add TEI Writer.
2016-01-19 14:03:57 -05:00
Albert Krewinkel
fabbd1aa79
Prefix even empty figure names with "fig:"
...
The convention used by pandoc for figures is to mark them by prefixing
the name with "fig:". The org reader failed to do this if a figure had
no name. The test for this was broken as well.
This fixes #2643 .
2016-01-11 22:23:59 +01:00
John MacFarlane
1506e62f48
LaTeX writer: restore old treatment of Span.
...
A Span is rendered with surrounding {braces}.
This was a regression in 1.16. Closes #2624 .
2016-01-09 12:16:24 -08:00
John MacFarlane
d5f67829dc
Added some entity tests in Markdown reader tests.
2016-01-08 17:33:37 -08:00
Albert Krewinkel
b3b00da43d
Fix function dropping subtrees tagged :noexport:
...
Continue scanning for comment subtrees beyond only the first block.
Note to self: when writing an recursive function, don't forget to, you
know, actually recurse.
Shout to @mrvdb for noticing this.
This fixes #2628 .
2016-01-07 19:56:44 +01:00
John MacFarlane
97c9691696
Textile reader: don't allow block HTML tags in inline contexts.
...
The reader previously did allow this, following redcloth,
which happily parses
Html blocks can be <div>inlined</div> as well.
as
<p>Html blocks can be <div>inlined</div> as well.</p>
This is invalid HTML, and this kind of thing can lead
to parsing problems (stack overflows) as well. So this
commit undoes this behavior. The above sample now produces;
<p>Html blocks can be</p>
<div>
<p>inlined</p>
</div>
<p>as well.</p>
2016-01-02 22:34:06 -08:00
John MacFarlane
a68e072bac
MediaWiki writer: fix spacing issues.
...
+ Start cell on new line unless it's a single Para or Plain.
+ For single Para or Plain, insert a space after the `|` to
avoid problems when the text begins with a character like
`-`.
Closes #2604 , closes #2606 .
2016-01-02 12:14:12 -08:00
John MacFarlane
28b2d86b21
LaTeX/Beamer template changes (Thomas Hodgson):
...
* Added `thanks` variable
* Use `parskip.sty` when `indent` isn't set (fall
back to using `setlength` as before if `parskip.sty`
isn't available).
* Use `biblio-style` with biblatex.
* Added `biblatexoptions` variable.
* Added `section-titles` variable (defaults to true)
to enable/suppress section title pages in beamer
slide shows.
* Moved beamer themes after fonts, so that themes can
change fonts. (Previously the fonts set were being
clobbered by lmodern.sty.)
2015-12-19 18:50:45 -08:00
mb21
1ead1f39ad
ICML writer: intersperse line breaks
...
instead of appending them to every ParagraphStyleRange
closes #2501
2015-12-17 10:26:59 +01:00
mb21
f3a9bdafef
ICML writer: added figure handling, closes #2590
2015-12-16 11:07:23 +01:00
John MacFarlane
f3133a8e9e
Merge pull request #2570 from mb21/rst-reader-imgattrs
...
Image attributes
2015-12-13 20:29:13 -08:00
John MacFarlane
a924a3f43d
Fixed ICML image syntax for local files.
...
`file:filename` rather than `file://./filename`.
I think this is right; it matches what we had before
with people actually using the ICML writer, and seems
to match examples in the spec. I don't
have a copy of InDesign I can test on, though.
@DigitalPublishingToolkit and @mb21, can you have
a look?
2015-12-13 20:19:34 -08:00
mb21
37931cb0c5
Docx reader: image attributes
2015-12-13 21:40:13 +01:00
mb21
30644b291b
RST reader: image attributes
2015-12-13 21:40:12 +01:00
John MacFarlane
202d848fb3
Fixed tests.
2015-12-12 16:22:31 -08:00
John MacFarlane
d6a4c70ef8
Test fixes.
2015-12-12 12:58:31 -08:00
John MacFarlane
af7e782436
Modified readers to emit SoftBreak when appropriate.
2015-12-12 09:31:51 -08:00
John MacFarlane
536b6bf538
Implemented SoftBreak and new --wrap
option.
...
Added threefold wrapping option.
* Command line option: deprecated `--no-wrap`, added
`--wrap=[auto|none|preserve]`
* Added WrapOption, exported from Text.Pandoc.Options
* Changed type of writerWrapText in WriterOptions from
Bool to WrapOption.
* Modified Text.Pandoc.Shared functions for SoftBreak.
* Supported SoftBreak in writers.
* Updated tests.
* Updated README.
Closes #1701 .
2015-12-11 23:55:08 -08:00
John MacFarlane
e5c72caf29
LaTeX template changes:
...
- only pass options to color package if colorlinks is set
- make definition of `\euro` conditional in xelatex/lualatex,
as it is already for pdflatex
(Andrew Dunning)
2015-12-03 10:45:11 -08:00
John MacFarlane
7b66f84b80
Fixed man template so disabling hyphenation actually works.
...
The command needs to come after .TH.
2015-12-03 10:38:48 -08:00
John MacFarlane
57350d9468
Added bodyless pipe table test case.
...
See #2556 .
2015-11-24 20:29:44 -08:00