summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Lua filters: stop exporting pushPandocModuleAlbert Krewinkel2017-12-29
| | | | | | The function `pushPandocModule` was exported by Text.Pandoc.Lua to enable simpler testing. The introduction of `runPandocLua` renders direct use of this function obsolete. (API change)
* data/pandoc.lua: drop function pandoc.global_filterAlbert Krewinkel2017-12-29
| | | | | | | | | | The function `global_filter` was used internally to get the implicitly defined global filter. It was of little value to end-users, but caused unnecessary code duplication in pandoc. The function has hence been dropped. Internally, the global filter is now received by interpreting the global table as lua filter. This is a Lua API change.
* Merge pull request #4170 from oltolm/opendocumentJohn MacFarlane2017-12-28
|\ | | | | improve formatting of formulas in OpenDocument
| * improve formatting of formulas in OpenDocumentoltolm2017-12-28
| |
* | Class: make FileTree opaque.John MacFarlane2017-12-28
| | | | | | | | | | | | This forces uses to interact with it using `insertInFileTree` and `getFileInfo`, which normalize file names.
* | Filter changes.John MacFarlane2017-12-28
| | | | | | | | | | | | | | | | | | | | | | * Previously we ran all lua filters before JSON filters. * Now we run filters in the order they are presented on the command line, whether lua or JSON. * The type of `applyFilters` has changed (incompatible API change). * `applyLuaFilters` has been removed (incompatible API change). * Bump version to 2.1. See #4196.
* | Alphabetical order Extension constructors.John MacFarlane2017-12-28
| | | | | | | | This makes them appear in order in `--list-extensions`.
* | Changed format of --list-extensions.John MacFarlane2017-12-28
| | | | | | | | Now the + or - occurs first.
* | Powerpoint writer tests: use IO.John MacFarlane2017-12-28
| | | | | | | | | | Otherwise we can't find the data files when compiled with -embed_data_files.
* | Moved makeCanoncial definition out of ifdef!John MacFarlane2017-12-28
| | | | | | | | | | Also added slide2 to the default pptx, and reordered the data files in pandoc.cabal.
* | Class: use makeCanonical for normalization in FileTree and data files.John MacFarlane2017-12-28
| |
* | Text.Pandoc.Class: add insertInFileTree (API change).John MacFarlane2017-12-28
| | | | | | | | | | | | | | 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.
* | LaTeX writer: Use \endhead after \toprule in headerless tables.John MacFarlane2017-12-28
| | | | | | | | Closes #4207.
* | LaTeX reader: be more tolerant of `&` character.John MacFarlane2017-12-28
| | | | | | | | | | This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
* | Org reader: support minlevel option for includesAlbert Krewinkel2017-12-28
| | | | | | | | | | | | | | | | | | 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
* | FB2 writer: add cover image specified by "cover-image" metaAlexander Krotov2017-12-28
| | | | | | | | Fixes #4195
* | PowerPoint writer: Obey slide level optionJesse Rosenthal2017-12-28
| |
* | Fix warning.John MacFarlane2017-12-27
| |
* | Small improvement to figcaption parsing. #4184.John MacFarlane2017-12-27
| |
* | Merge pull request #4184 from mb21/html-reader-figcaptionJohn MacFarlane2017-12-27
|\ \ | | | | | | HTML Reader: be more forgiving about figcaption
| * | HTML Reader: be more forgiving about figcaptionmb212017-12-23
| | | | | | | | | | | | fixes #4183
* | | HTML reader: parse div with class `line-block` as LineBlock.John MacFarlane2017-12-27
| | | | | | | | | | | | See #4162.
* | | Allow `--list-extensions` to take an optional FORMAT argument.John MacFarlane2017-12-27
| | | | | | | | | | | | | | | This lists the extensions set by default for the selected FORMAT.
* | | Allow lenient decoding of *latex error logs.John MacFarlane2017-12-27
| | | | | | | | | | | | | | | | | | | | | | | | These sometimes aren't properly UTF8 encoded, and it's confusing if we get an encoding error due to the error log. Closes #4200.
* | | Fix regression of DefinitionLists in custom writerAlbert Krewinkel2017-12-27
| | | | | | | | | | | | | | | | | | | | | Pairs where serialized as two-element lists instead, and are now pushed again as a table with a single key/value pair. Fixes: #4202
* | | Docx Reader: preprocess Document body to unwrap "w:sdt" elementsJesse Rosenthal2017-12-27
| |/ |/| | | | | | | | | | | | | | | | | 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
* | Fix custom writer regressionAlbert Krewinkel2017-12-27
| | | | | | | | | | | | | | An additional `Lua.call` was left in during refactoring, which caused an exception "attempt to call a nil value". Fixes: #4202
* | LaTeX writer: Allow fragile=singleslide attribute in beamer slides.John MacFarlane2017-12-26
| | | | | | | | Closes #4169.
* | Add opus to MIME type table as audio/ogg.John MacFarlane2017-12-26
| | | | | | | | See #4198.
* | LaTeX reader: support `\foreignlanguage` from babel.John MacFarlane2017-12-26
| |
* | HTML writer: Use br elements in line blocks...John MacFarlane2017-12-26
| | | | | | | | | | | | | | | | 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.
* | RST reader: allow empty list items (as docutils does).John MacFarlane2017-12-24
| | | | | | | | Closes #4193.
* | JATS reader: handle author-notes.John MacFarlane2017-12-23
| |
* | JATS reader: code refactoring.John MacFarlane2017-12-23
| |
* | Plain writer: don't linkify table of contents.John MacFarlane2017-12-23
| |
* | Fixed bug: when target is PDF, writer extensions were being ignored.John MacFarlane2017-12-23
| | | | | | | | | | | | | | | | | | | | 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).
* | Lua modules: add function pandoc.utils.hierarchicalizeAlbert Krewinkel2017-12-23
| | | | | | | | Convert list of Pandoc blocks into (hierarchical) list of Elements.
* | JATS reader: include institute metadata.John MacFarlane2017-12-23
| |
* | JATS reader: process author metadata.John MacFarlane2017-12-23
| |
* | Lua modules: add function pandoc.utils.normalize_dateAlbert Krewinkel2017-12-23
| | | | | | | | | | The function parses a date and converts it (if possible) to "YYYY-MM-DD" format.
* | Lua modules: add function pandoc.utils.to_roman_numeralAlbert Krewinkel2017-12-23
| | | | | | | | | | The function allows conversion of numbers below 4000 into roman numerals.
* | JATS reader: better citation handling.John MacFarlane2017-12-23
|/ | | | | | | | | | | 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.
* Merge pull request #4189 from mb21/export-blocksToInlinesJohn MacFarlane2017-12-22
|\ | | | | API change: export blocksToInlines' from Text.Pandoc.Shared
| * API change: export blocksToInlines' from Text.Pandoc.Sharedmb212017-12-22
| |
* | `latex_macros` extension changes.John MacFarlane2017-12-22
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Markdown reader: improved raw tex parsing.John MacFarlane2017-12-22
| | | | | | | | | | + Preserve original whitespace between blocks. + Recognize `\placeformula` as context.
* | LaTeX reader: use applyMacros in rawLaTeXBlock, rawLaTeXInline.John MacFarlane2017-12-22
| |
* | LaTeX reader: Refactored inlineCommand.John MacFarlane2017-12-22
| |
* | Lua modules: add stringify function to pandoc.utilsAlbert Krewinkel2017-12-22
| | | | | | | | | | The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed.
* | Lua.Util: avoid altering the stack if peeking failsAlbert Krewinkel2017-12-22
| | | | | | | | | | | | | | | | 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