summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
* Makefile: Add 'pandoc-templates' target.John MacFarlane2017-12-27
|
* Update changelog.John MacFarlane2017-12-27
|
* data/sample.lua: fixed problem with tables.John MacFarlane2017-12-27
| | | | Closes #4202.
* data/sample.lua: Fixed problem with definition lists.John MacFarlane2017-12-27
|
* Added tests for custom writer.John MacFarlane2017-12-27
|
* Docx reader: add tests for structured document tags unwrapping.Jesse Rosenthal2017-12-27
|
* 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
* Update changelog.John MacFarlane2017-12-26
|
* Use lts-10.1 resolver.John MacFarlane2017-12-26
|
* Updated reference.docx.John MacFarlane2017-12-26
| | | | | | | | | | Instead of just "Hello, world", the document now contains exemplars of most of the styles that have an effect on pandoc documents. This makes it easier to see the effect of style changes. Closes #4175.
* 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
|
* Tweaks to lua-filters.md docsJohn 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.
* Use pandoc-citeproc 0.12.2 in binary pgksJohn MacFarlane2017-12-24
|
* Fixed changelog typoJohn MacFarlane2017-12-24
|
* Update changelog.John MacFarlane2017-12-24
|
* RST reader: allow empty list items (as docutils does).John MacFarlane2017-12-24
| | | | Closes #4193.
* Add Hamish Mackenzie to authors.John MacFarlane2017-12-23
|
* Bump to 2.0.6.John MacFarlane2017-12-23
|
* 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.
* data/init.lua: load pandoc.utils by defaultAlbert Krewinkel2017-12-23
|
* 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
| |
* | doc/lua-filter.md: document pandoc.utils.stringifyAlbert Krewinkel2017-12-22
| | | | | | | | Change: minor
* | 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
* | RST writer: fix anchors for headers.John MacFarlane2017-12-22
|/ | | | | We were missing an `_`. See #4188.
* PowerPoint writer: Treat lists inside BlockQuotes as listsJesse Rosenthal2017-12-22
| | | | | | 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.
* Mention JATS output (and input) in MANUAL, README, cabal description.John MacFarlane2017-12-21
|
* Merge pull request #4177 from stencila/jats-xml-readerJohn MacFarlane2017-12-21
|\ | | | | Add Basic JATS reader based on DocBook reader
| * Improve support for code language in JATSHamish Mackenzie2017-12-22
| |
| * Add Basic JATS reader based on DocBook readerHamish Mackenzie2017-12-20
| |
* | Merge branch 'master' of github.com:jgm/pandocJohn MacFarlane2017-12-21
|\ \