Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-12-28 | Changed format of --list-extensions. | John MacFarlane | 1 | -4/+3 | |
Now the + or - occurs first. | |||||
2017-12-28 | Powerpoint writer tests: use IO. | John MacFarlane | 1 | -2/+2 | |
Otherwise we can't find the data files when compiled with -embed_data_files. | |||||
2017-12-28 | Moved makeCanoncial definition out of ifdef! | John MacFarlane | 1 | -9/+11 | |
Also added slide2 to the default pptx, and reordered the data files in pandoc.cabal. | |||||
2017-12-28 | Class: use makeCanonical for normalization in FileTree and data files. | John MacFarlane | 1 | -8/+11 | |
2017-12-28 | Text.Pandoc.Class: add insertInFileTree (API change). | John MacFarlane | 1 | -7/+13 | |
This gives a pure way to insert an ersatz file into a FileTree. In addition, we normalize paths both on insertion and on lookup, so that "foo" and "./foo" will be judged equivalent. | |||||
2017-12-28 | LaTeX writer: Use \endhead after \toprule in headerless tables. | John MacFarlane | 1 | -4/+3 | |
Closes #4207. | |||||
2017-12-28 | LaTeX reader: be more tolerant of `&` character. | John MacFarlane | 1 | -1/+1 | |
This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208. | |||||
2017-12-28 | Org reader: support minlevel option for includes | Albert Krewinkel | 1 | -14/+37 | |
The level of headers in included files can be shifted to a higher level by specifying a minimum header level via the `:minlevel` parameter. E.g. `#+include: "tour.org" :minlevel 1` will shift the headers in tour.org such that the topmost headers become level 1 headers. Fixes: #4154 | |||||
2017-12-28 | FB2 writer: add cover image specified by "cover-image" meta | Alexander Krotov | 1 | -1/+10 | |
Fixes #4195 | |||||
2017-12-28 | PowerPoint writer: Obey slide level option | Jesse Rosenthal | 1 | -0/+3 | |
2017-12-27 | Fix warning. | John MacFarlane | 1 | -2/+1 | |
2017-12-27 | Small improvement to figcaption parsing. #4184. | John MacFarlane | 1 | -2/+0 | |
2017-12-27 | Merge pull request #4184 from mb21/html-reader-figcaption | John MacFarlane | 1 | -4/+7 | |
HTML Reader: be more forgiving about figcaption | |||||
2017-12-27 | HTML reader: parse div with class `line-block` as LineBlock. | John MacFarlane | 2 | -1/+14 | |
See #4162. | |||||
2017-12-27 | Allow `--list-extensions` to take an optional FORMAT argument. | John MacFarlane | 1 | -4/+6 | |
This lists the extensions set by default for the selected FORMAT. | |||||
2017-12-27 | Allow lenient decoding of *latex error logs. | John MacFarlane | 1 | -1/+6 | |
These sometimes aren't properly UTF8 encoded, and it's confusing if we get an encoding error due to the error log. Closes #4200. | |||||
2017-12-27 | Fix regression of DefinitionLists in custom writer | Albert Krewinkel | 1 | -1/+11 | |
Pairs where serialized as two-element lists instead, and are now pushed again as a table with a single key/value pair. Fixes: #4202 | |||||
2017-12-27 | Docx Reader: preprocess Document body to unwrap "w:sdt" elements | Jesse Rosenthal | 1 | -1/+31 | |
We walk through the document (using the zipper in Text.XML.Light.Cursor) to unwrap the sdt tags before doing the rest of the parsing of the document. Note that the function is generically named `walkDocument` in case we need to do any further preprocessing in the future. Closes #4190 | |||||
2017-12-27 | Fix custom writer regression | Albert Krewinkel | 1 | -2/+1 | |
An additional `Lua.call` was left in during refactoring, which caused an exception "attempt to call a nil value". Fixes: #4202 | |||||
2017-12-26 | LaTeX writer: Allow fragile=singleslide attribute in beamer slides. | John MacFarlane | 1 | -2/+2 | |
Closes #4169. | |||||
2017-12-26 | Add opus to MIME type table as audio/ogg. | John MacFarlane | 1 | -0/+1 | |
See #4198. | |||||
2017-12-26 | LaTeX reader: support `\foreignlanguage` from babel. | John MacFarlane | 1 | -0/+30 | |
2017-12-26 | HTML writer: Use br elements in line blocks... | John MacFarlane | 1 | -2/+1 | |
instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block. | |||||
2017-12-24 | RST reader: allow empty list items (as docutils does). | John MacFarlane | 1 | -2/+2 | |
Closes #4193. | |||||
2017-12-23 | JATS reader: handle author-notes. | John MacFarlane | 1 | -5/+6 | |
2017-12-23 | JATS reader: code refactoring. | John MacFarlane | 1 | -63/+48 | |
2017-12-23 | Plain writer: don't linkify table of contents. | John MacFarlane | 1 | -10/+12 | |
2017-12-23 | Fixed bug: when target is PDF, writer extensions were being ignored. | John MacFarlane | 1 | -3/+3 | |
E.g. `-t latex-smart -o file.pdf` would produce a different latex intermediate than `-t latex-smart -o file.tex`. Thanks to Bernhard Fisseni for pointing this out. This is a regression since pandoc 2.0 (introduced in commit c7e3c1ec). | |||||
2017-12-23 | Lua modules: add function pandoc.utils.hierarchicalize | Albert Krewinkel | 2 | -8/+39 | |
Convert list of Pandoc blocks into (hierarchical) list of Elements. | |||||
2017-12-23 | JATS reader: include institute metadata. | John MacFarlane | 1 | -2/+11 | |
2017-12-23 | JATS reader: process author metadata. | John MacFarlane | 1 | -5/+27 | |
2017-12-23 | Lua modules: add function pandoc.utils.normalize_date | Albert Krewinkel | 2 | -2/+14 | |
The function parses a date and converts it (if possible) to "YYYY-MM-DD" format. | |||||
2017-12-23 | Lua modules: add function pandoc.utils.to_roman_numeral | Albert Krewinkel | 1 | -1/+9 | |
The function allows conversion of numbers below 4000 into roman numerals. | |||||
2017-12-23 | JATS reader: better citation handling. | John MacFarlane | 1 | -3/+79 | |
We now convert a ref-list element into a list of citations in metadata, suitable for use with pandoc-citeproc. We also convert references to pandoc citation elements. Thus a JATS article with embedded bibliographic information can be processed with pandoc and pandoc-citeproc to produce a formatted bibliography. | |||||
2017-12-23 | HTML Reader: be more forgiving about figcaption | mb21 | 1 | -4/+7 | |
fixes #4183 | |||||
2017-12-22 | Merge pull request #4189 from mb21/export-blocksToInlines | John MacFarlane | 3 | -3/+4 | |
API change: export blocksToInlines' from Text.Pandoc.Shared | |||||
2017-12-22 | `latex_macros` extension changes. | John MacFarlane | 2 | -5/+11 | |
Don't pass through macro definitions themselves when `latex_macros` is set. The macros have already been applied. If `latex_macros` is enabled, then `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing a macro definition, and will update pandoc's internal macro map accordingly, but the empty string will be returned. Together with earlier changes, this closes #4179. | |||||
2017-12-22 | Markdown reader: improved raw tex parsing. | John MacFarlane | 1 | -6/+9 | |
+ Preserve original whitespace between blocks. + Recognize `\placeformula` as context. | |||||
2017-12-22 | LaTeX reader: use applyMacros in rawLaTeXBlock, rawLaTeXInline. | John MacFarlane | 1 | -2/+5 | |
2017-12-22 | LaTeX reader: Refactored inlineCommand. | John MacFarlane | 1 | -24/+11 | |
2017-12-22 | API change: export blocksToInlines' from Text.Pandoc.Shared | mb21 | 3 | -3/+4 | |
2017-12-22 | Lua modules: add stringify function to pandoc.utils | Albert Krewinkel | 1 | -6/+35 | |
The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed. | |||||
2017-12-22 | Lua.Util: avoid altering the stack if peeking fails | Albert Krewinkel | 1 | -4/+12 | |
The stack now remains unaltered if `getRawInt` or `getTable` fail. This is important when those functions are used in an operation that is part of an Alternative. Change: minor | |||||
2017-12-22 | RST writer: fix anchors for headers. | John MacFarlane | 1 | -1/+1 | |
We were missing an `_`. See #4188. | |||||
2017-12-22 | PowerPoint writer: Treat lists inside BlockQuotes as lists | Jesse Rosenthal | 1 | -1/+13 | |
We don't yet produce incremental lists in PowerPoint, but we should at least treat lists inside BlockQuotes as lists, for compatibility with other slide formats. | |||||
2017-12-21 | Merge pull request #4177 from stencila/jats-xml-reader | John MacFarlane | 3 | -19/+437 | |
Add Basic JATS reader based on DocBook reader | |||||
2017-12-21 | Merge branch 'master' of github.com:jgm/pandoc | John MacFarlane | 1 | -2/+8 | |
2017-12-21 | Docx writer: ensure that `distArchive` is the one that comes with pandoc. | John MacFarlane | 1 | -2/+6 | |
Previously a `reference.docx` in `~/.pandoc` (or the user data dir) would be used instead, and this could cause problems because a user-modified docx sometimes lacks vital sections that we count on the `distArchive` to supply. Closes #4182. | |||||
2017-12-21 | JATS writer: Make <p> optional in <td> and <th> (#4178) | Hamish Mackenzie | 1 | -0/+3 | |
If the contents are single `Plain` block then do not wrap them with a <p> element. | |||||
2017-12-21 | jats writer: Self closing tags for empty xref (#4187) | Hamish Mackenzie | 1 | -2/+5 | |