Sidharth Kapur
490c2b543d
Add class option for code block in RST reader
...
According to http://docutils.sourceforge.net/docs/ref/rst/directives.html#code ,
the code directive supports the ":class:" option.
2016-05-01 21:42:58 -05:00
Jesse Rosenthal
99eac312fe
Binary fmts throw PandocError on zip-archive fail
...
Commit 91dc3342
made `readDocx` throw PandocError if there was an
unarchiving error. This extends that fix to `readOdt` and `readEPUB`.
2016-05-01 18:27:20 -04:00
John MacFarlane
1fbe79db05
LaTeX writer: use {} around options containing special chars.
...
Closes #2892 .
2016-05-01 11:20:26 -07:00
Jesse Rosenthal
91dc334249
Docx Reader: Throw PandocError on unzip failure
...
Previously, readDocx would error out if zip-archive failed. We change
the archive extraction step from `toArchive` to `toArchiveOrFail`, which
returns an Either value.
2016-05-01 12:17:12 -04:00
John MacFarlane
aa4a1d527a
HTML writer: ensure mathjax link is added when math appears in footnote.
...
Previously if a document only had math in a footnote,
the MathJax link would not be added.
Closes #2881 .
2016-04-29 14:54:54 -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
John MacFarlane
cc82851a6a
Merge pull request #2876 from shosti/org-code-indent
...
Ignore leading space in org code blocks
2016-04-26 23:07:29 -07:00
John MacFarlane
1985164816
LaTeX writer: ignore --incremental unless -t beamer.
...
Closes #2843 .
2016-04-26 21:50:37 -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
John MacFarlane
a0fae92847
Require texmath 0.8.6.2.
...
Closes several texmath-related bugs: #2775 , #2310 , #2310 .
This fixes issues with sub/superscript positioning and
matrix column alignment in docx.
2016-04-20 15:05:41 -07:00
John MacFarlane
b8ce756b41
rtack.yaml: use data-default 0.6.0.
2016-04-18 15:33:30 -07:00
John MacFarlane
e053865746
Allow data-default 0.6.0.
2016-04-18 15:00:00 -07:00
Jesse Rosenthal
5c24e66c16
Docx Reader: Tests for track-changes moving
2016-04-16 08:39:25 -04:00
Jesse Rosenthal
a385ee1d4f
Docx Reader: parse moveTo
and moveFrom
...
`moveTo` and `moveFrom` are track-changes tags that are used when a
block of text is moved in the document. We now recognize these tags and
treat them the same as `insert` and `delete`, respectively. So,
`--track-changes=accept` will show the moved version, while
`--track-changes=reject` will show the original version.
2016-04-15 14:09:18 -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
John MacFarlane
773bbb8fc7
Markdown + HTML readers: be more forgiving about unescaped &.
...
We are now more forgiving about parsing invalid HTML with
unescaped `&` as raw HTML. (Previously any unescaped `&`
would cause pandoc not to recognize the string as raw HTML.)
Closes #2410 .
2016-04-10 07:39:36 -07:00
John MacFarlane
cb8b1c2655
README - improved documentation of --columns option.
2016-04-08 15:00:14 -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
John MacFarlane
676b800993
Merge pull request #2828 from adunning/patch-1
...
Recognize `la-x-classic` as Classical Latin.
2016-03-30 09:59:54 -07:00
Andrew Dunning
0c37a7c488
Recognize la-x-classic
as Classical Latin.
...
This allows one to access the hyphenation patterns at <http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex >, using its private language tag.
2016-03-30 14:15:47 +01:00
John MacFarlane
32ecd195bd
Use texmath >= 0.8.6.1.
...
This fixes behavior of roots, e.g. `\sqrt[3]{x}`.
See #2824 .
2016-03-29 22:57:37 -07:00
John MacFarlane
53fb682e77
stack.full.yaml: build local zip-archive, texmath.
2016-03-28 16:22:00 -07:00
John MacFarlane
d3f76150fa
stack.full.yaml: also include local cmark-hs.
2016-03-27 12:33:41 -07:00
John MacFarlane
f74498cb47
EPUB writer: set 'navpage' variable on nav page.
...
This allows templates to treat it differently.
2016-03-26 13:14:50 -07:00
John MacFarlane
4d5450d493
Travis: use -fno-warn-unused-do-bind -Wall -Werror.
2016-03-25 12:04:27 -07:00
John MacFarlane
9f664ee6cf
Add --pedantic to stack build on travis.
...
This turns on -Wall, -Werror.
-Werror is already there for cabal builds, but for some reason
travis isn't failing when errors occur.
2016-03-25 09:14:54 -07:00
John MacFarlane
9742c48647
Removed two superfluous lines.
2016-03-25 09:05:38 -07:00
John MacFarlane
90abe3216b
Updated changelog.
2016-03-24 22:24:15 -07:00
John MacFarlane
f47b369f37
LaTeX writer: better positioning for hypertarget in figures.
...
Closes #2813 .
2016-03-24 16:44:33 -07:00
John MacFarlane
bb6897a13e
LaTeX writer: Fixed position of label in figures.
...
Partially addresses #2813 .
This isn't perfect, because now the hypertarget is in the
wrong place -- when you link to the figure, the screen
is positioned with the caption at the top, and most of
the figure off screen.
So this needs a bit more tweaking.
2016-03-24 09:41:45 -07:00
John MacFarlane
be2693bc45
Travis: run tests when compiling from tarball.
...
This should help with bugs like #2811 .
2016-03-24 09:03:13 -07:00
John MacFarlane
3bfb8ea032
Updated man page.
2016-03-24 09:00:23 -07:00
John MacFarlane
f7a209ba67
Updated changelog.
2016-03-24 09:00:00 -07:00
John MacFarlane
1de993c64a
Bump version to 1.17.0.3.
2016-03-24 08:59:06 -07:00
John MacFarlane
8090051aae
Merge pull request #2812 from mb21/patch-2
...
include .tei files in pandoc.cabal
2016-03-24 08:58:19 -07:00
Mauro Bieg
30ceb235ce
include .tei files in pandoc.cabal
...
closes #2811
2016-03-24 13:41:12 +01:00
John MacFarlane
499985c1a3
Updated copyright dates to include 2016.
2016-03-22 17:20:39 -07:00
John MacFarlane
3660e55e48
Fixed copyright dates.
2016-03-22 17:17:21 -07:00
John MacFarlane
3e50a0ee98
Updated man page.
2016-03-22 17:07:18 -07:00
John MacFarlane
ab3e78fb35
Updated changelog.
2016-03-22 17:06:36 -07:00
John MacFarlane
e36e692e6b
Version bump to 1.17.0.2.
2016-03-22 17:05:22 -07:00
John MacFarlane
b1ffdf3b01
Fixed bug in Markdown raw HTML parsing.
...
This was a regression, with the rewrite of `htmlInBalanced`
(from `Text.Pandoc.Readers.HTML`) in 1.17.
It caused newlines to be omitted in raw HTML blocks.
Closes #2804 .
2016-03-22 16:56:10 -07:00
John MacFarlane
db207904ef
Updated man page.
2016-03-21 15:39:57 -07:00
John MacFarlane
650c12df34
Updated changelog.
2016-03-21 15:39:46 -07:00
John MacFarlane
edcb8b6169
Version to 1.17.0.1.
2016-03-21 15:34:56 -07:00
John MacFarlane
2649a0d836
Improved documentation of templates.
...
Note that there's no docx template.
Closes #2797 .
2016-03-21 15:34:09 -07:00
Jesse Rosenthal
a8a2d4f224
Fix stdin handling for file-scope
...
Regardless of input type, we should use default handling if we are
dealing with stdin. In other words, there should be no file-scope if
there are no files. This was an issue with pandoc json, which could be
piped on stdin, but which was read by default with `--file-scope`.
2016-03-21 17:02:07 -04:00
John MacFarlane
08c625cff0
Fixed link to TEI in README.
2016-03-20 15:23:33 -07:00