aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-12-13Docx reader: Empty header should be list of lists.Jesse Rosenthal3-12/+18
In the past, the docx reader wrote an empty header as an empty list. It should have the same width as a row (and be filled with empty cells). (Note that I've reordered the code here slightly to get rid of a call to `head`. It wasn't unsafe because it tested for null, but it was a bit of a smell.)
2016-12-11Fix display math with --webtex in markdown output.John MacFarlane1-9/+13
Closes #3298.
2016-12-10Moved make_osx_package.sh to osx/ directory.John MacFarlane2-1/+1
2016-12-10Updated MANUAL date and man page.John MacFarlane2-30/+43
2016-12-10Updated changelog.John MacFarlane1-0/+65
2016-12-10Version to 1.19.1John MacFarlane1-1/+1
2016-12-09We no longer need the MathMLInHTML.js shim from 2004!John MacFarlane3-74/+0
2016-12-08Docx reader: Ensure one-row tables don't have header.Jesse Rosenthal4-1/+11
Tables in MS Word are set by default to have special first-row formatting, which pandoc uses to determine whether or not they have a header. This means that one-row tables will, by default, have only a header -- which we imagine is not what people want. This change ensures that a one-row table is not understood to be a header only. Note that this means that it is impossible to produce a header-only table from docx, even though it is legal pandoc. But we believe that in nearly all cases, it will be an accidental (and unwelcome) result Closes #3285.
2016-12-08Small tweaks to release checklist.John MacFarlane1-3/+3
2016-12-08Makefile: use stack.John MacFarlane1-22/+6
2016-12-08Set PANDOC_VERSION environment variable for filters.John MacFarlane1-2/+4
Closes #2640.
2016-12-08Removed debug trace from HTML reader.John MacFarlane1-2/+1
2016-12-07Really fixed bash completion this time!John MacFarlane1-1/+1
Closes #2749.
2016-12-07Improved bash-completion for filenames with spaces.John MacFarlane1-1/+1
2016-12-07Fixed bash completion for filenames with spaces.John MacFarlane2-6/+23
Closes #2749.
2016-12-07MANUAL: better docs on how to create a custom reference.docx.John MacFarlane1-8/+24
2016-12-07HTML reader: Understand `style=width:` as well as `width` in `col`.John MacFarlane1-2/+7
Closes #3286.
2016-12-07Fixed tests with dynamic linking.John MacFarlane1-3/+12
Closes #2709.
2016-12-07RST reader: print warnings when keys, substitition, notes not found.John MacFarlane1-6/+26
Previously the parsers failed and we got raw text. Now we get a link with an empty URL, or empty inlines in the case of a note or substitution.
2016-12-07RST reader: fix hyperlink aliases.John MacFarlane3-2/+13
`link <google_>`_ .. _google: https://google.com is really a reference link. Closes #3283.
2016-12-06Fixed some bad regressions in HTML table parser.John MacFarlane1-3/+3
This regression leads to the introduction of empty rows in some circumstances. Closes #3280.
2016-12-05Man writer: Ensure that periods are escaped at beginning of line.John MacFarlane1-4/+2
Closes #3270.
2016-12-05Pretty: Added `afterBreak`.John MacFarlane1-0/+15
This makes it possible to insert escape codes for content that needs escaping at the beginning of a line.
2016-12-04LaTeX writer: Fix unnumbered headers when used with `--top-level`Albert Krewinkel2-1/+23
Fix interaction of top-level divisions `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers are ensured to be written using stared commands (like `\subsection*{}`). Fixes: #3272
2016-12-04LaTeX template: use correct separator for pdfkeywords.John MacFarlane1-7/+7
Needs a comma not a semicolon. Thanks to Wandmalfarbe.
2016-12-04Markdown writer: Fixed incorrect word wrapping.John MacFarlane4-7/+7
Previously pandoc would sometimes wrap lines too early due to this bug. Closes #3277.
2016-12-03Minor spelling typos in the manual (#3273)Anthony Geoghegan1-23/+23
* Fix spelling typos: * hightlight * respecitively * codeblock – inconsistent with rest of document using “code block” * Use consistent case for proper nouns. For example: “ASCII”, “Unicode”, “Latin”, “JavaScript”, “CSS”.
2016-12-01More cosmetic changes to changelog.John MacFarlane1-131/+130
2016-12-01Reformatting changelog.John MacFarlane1-217/+217
2016-11-30Update date in manual and man page.John MacFarlane2-20/+40
2016-11-30Updated changelog.John MacFarlane1-6/+14
2016-11-30Use pandoc-citeproc 0.10.3 release in stack.yamls for binary pkgs.John MacFarlane3-9/+5
2016-11-30Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane33-133/+117
Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
2016-11-30Updated changelog.John MacFarlane1-0/+4
2016-11-30Removed unused import.John MacFarlane1-1/+0
2016-11-30travis: use language generic (#3267)ickc1-2/+2
2016-11-30stack.yaml - use texmath 0.9 release.John MacFarlane2-6/+2
2016-11-30Use new module from texmath to lookup MS font codepoints.John MacFarlane6-245/+9
+ Removed Text.Pandoc.Readers.Docx.Fonts + Moved its code to texmath; we now use (from texmath 0.9) Text.TeXMath.Unicode.Fonts + Use texmath 0.9 (currently from git). + Updated epub tests because texmath now handles more mathml.
2016-11-27Updated changelog.John MacFarlane1-5/+17
2016-11-27Shared.fetchItem: Better handling of protocol-relative URL.John MacFarlane1-0/+9
If URL starts with `//` and there is no "base URL" (as there would be if a URL were used on the command line), then default to http:. Closes #2635.
2016-11-27Updated renderHtml import in HTML writer to avoid deprecated function.John MacFarlane1-2/+1
2016-11-27Refactor top-level division selection (#3261)Albert Krewinkel9-64/+111
The "default" option is no longer represented as `Nothing` but via a new type constructor, making the `Maybe` wrapper superfluous. The default behavior of using heuristics can now be enabled explicitly by setting `--top-level-division=default`. API change (`Text.Pandoc.Options`): The `Division` type was renamed to `TopLevelDivision`. The `Section`, `Chapter`, and `Part` constructors were renamed to `TopLevelSection`, `TopLevelChapter`, and `TopLevelPart`, respectively. An additional `TopLevelDefault` constructor was added, which is now also the new default value of the `writerTopLevelDivision` field in `WriterOptions`.
2016-11-27Updated stack.yaml to use lts 7.9 + latest pandoc-citeproc dev.John MacFarlane4-7/+7
2016-11-27Version to 1.19.John MacFarlane1-1/+1
2016-11-27Update changelog.John MacFarlane1-0/+258
2016-11-26HTML reader: improved table parsing.John MacFarlane1-11/+24
We now check explicitly for non-1 rowspan or colspan attributes, and fail when we encounter them. Previously we checked that each row had the same number of cells, but that could be true even with rowspans/colspans. And there are cases where it isn't true in tables that we can handle fine -- e.g. when a tr element is empty. So now we just pad rows with empty cells when needed. Closes #3027.
2016-11-26Revert "Open Document writer: set first level of blockquotes to not use ↵John MacFarlane1-2/+3
indent (#2757)" This reverts commit fee0b913c5dd95e50845f6f35430b7582322ef0b. The previous commit did not provide a good way to get increased indentation for nested block quotes. Rolling it back for now. @jjsheets feel free to submit something that handles multiple levels of block quote smoothly, if you like.
2016-11-26Open Document writer: set first level of blockquotes to not use indent (#2757)Jeff Sheets1-3/+2
* Open Document writer: set first level of blockquotes to not use indent Nested blockquotes start using indents like before. Quotation style is still in use, so the style's indent settings take effect on the first level of blockquotes. * Removed list construction to improve pull request to fix #2747
2016-11-26[Tex] Remove invalid inlines in sections (#3218)hubertp-lshift1-4/+6
Latex doesn't like when hypertargets or images are put in the options list of the section. They are not lost since they were actually duplicated and present also in the second argument list. Note on the implementation: I had to inline the definiton of 'foldMap' since it is not implemented in every version of Haskell that Pandoc supports.
2016-11-26[odt] Infer table's caption from the paragraph (#3224)hubertp-lshift7-14/+29
ODT's reader always put empty captions for the parsed tables. This commit 1) checks paragraphs that follow the table definition 2) treats specially a paragraph with a style named 'Table' 3) does some postprocessing of the paragraphs that combines tables followed immediately by captions The ODT writer used 'TableCaption' style name for the caption paragraph. This commit follows the open office approach which allows for appending captions to table but uses a built-in style named 'Table' instead of 'TableCaption'. Any users of odt format (both writer and reader) are therefore required to change the style's name to 'Table', if necessary.