aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-04-22Use foundation-0.0.7.John MacFarlane2-0/+2
See https://github.com/haskell-foundation/foundation/issues/238 for the bug on Windows with 0.0.6.
2017-04-22Add siunitx Support (#3588)schrieveslaach2-0/+38
For example: ```latex \SI[round-precision=2]{1}{m} is equal to \SI{1000}{mm}. \SI[round-precision=2]{1}[\$]{} is equal to \SI{0.938094}{\euro} ```
2017-04-22Allow aeson 1.2.0.0.John MacFarlane1-1/+1
2017-04-22Use skylighitng >= 0.3.3.John MacFarlane1-2/+2
2017-04-22Use latest skylighting, lts.John MacFarlane2-5/+4
2017-04-18Lua: drop useless filter function type parameterAlbert Krewinkel1-28/+20
The return-type parameter for lua filter functions is removed. It only complicated the code without introducing any additional type safety.
2017-04-16Org reader: allow emphasized text to be followed by `[`Albert Krewinkel2-1/+11
Closes: #3577
2017-04-16Read image size of Inkscape SVGs (#3580)schrieveslaach1-4/+4
2017-04-16Org reader: convert markup at beginning of footnotesAlbert Krewinkel2-1/+11
Closes: #3576
2017-04-15Lua filter: revert to non-destructuring filtersAlbert Krewinkel5-77/+58
We want to provide an interface familiar to users of other filtering libraries.
2017-04-15Lua module: provide accessors to element propertiesAlbert Krewinkel1-39/+109
2017-04-15Small fix to error reporting in App.John MacFarlane1-4/+2
Closes #3548.
2017-04-15Avoid parsing "Notes:**" as a bare URI.John MacFarlane2-0/+8
This avoids parsing bare URIs that start with a scheme + colon + `*`, `_`, or `]`. Closes #3570.
2017-04-15Error: Added PandocCouldNotFindDataFileError.John MacFarlane3-7/+9
Use this instead of PandocAppError when appropriate. Removed exit code from PandocAppError, use 1 for all.
2017-04-15Fixed shadowing warningsJohn MacFarlane1-5/+5
2017-04-15Docx reader: removed readDocxWithWarnings (API change).John MacFarlane1-9/+1
No longer necessary with pandoc 2.0 framework.
2017-04-15App: use PandocOptionError instead of PandocAppError where appropriate.John MacFarlane1-16/+16
2017-04-15Error: Added PandocFilterError.John MacFarlane2-8/+7
2017-04-15Error: Added PandocPDFErrorJohn MacFarlane2-1/+3
2017-04-15Text.Pandoc.Error: added new constructors.John MacFarlane2-9/+13
- PandocSyntaxMapError String - PandocFailOnWarningError - PandocPDFProgramNotFoundError String
2017-04-15Revised error message for pandoc -t pdf.John MacFarlane1-4/+4
2017-04-15Lua filter: use Attributes constructor for AttrsAlbert Krewinkel2-30/+76
Element attributes are pushed to the stack via the `Attributes` function. `Attributes` creates an Attr like triple, but the triple also allows table-like access to key-value pairs.
2017-04-15Lua module: fix doc generation, reorder codeAlbert Krewinkel1-69/+60
Ensure that documentation generated with `ldoc` is readable and correct.
2017-04-15Lua module: provide builder functions for math and quotedAlbert Krewinkel1-4/+42
Provide functions `pandoc.SingleQuoted`, `pandoc.DoubleQuoted`, `pandoc.DisplayMath`, and `pandoc.InlineMath` to allow simple building of Math and Quoted elements.
2017-04-14Lua filter: allow shorthand functions for math and quotedAlbert Krewinkel4-21/+52
Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters.
2017-04-14Lua filter: Re-order code of stack value instancesAlbert Krewinkel1-106/+122
2017-04-14Lua filter: use lua strings for nullary constructorsAlbert Krewinkel2-124/+41
Lua string are used to represent nullary data constructors. The previous table-based representation was based on the JSON serialization, but can be simplified. This also matches the way those arguments are passed to custom writers.
2017-04-14Avoid repeating StackValue instances definitionsAlbert Krewinkel5-156/+166
The lua filters and custom lua writer system defined very similar StackValue instances for strings and tuples. These instance definitions are extracted to a separate module to enable sharing.
2017-04-14Extract lua helper functions into Lua.Util moduleAlbert Krewinkel5-131/+152
2017-04-14Use lua bools and strings for MetaBool, MetaStringAlbert Krewinkel1-2/+2
Native lua booleans and strings are used to represent MetaBool and MetaString values. This is more natural than the previous table-based representation. The old lua representation can still be read back to haskell, ensuring compatibility with the `pandoc.MetaBool` and `pandoc.MetaString` lua constructors.
2017-04-14Merge pull request #3569 from tarleb/lua-destructured-filter-functionsAlbert Krewinkel11-214/+978
Destructuring lua filter functions
2017-04-14Lua filter: use destructured functions for block filtersAlbert Krewinkel3-21/+26
Filtering functions take element components as arguments instead of the whole block elements. This resembles the way elements are handled in custom writers.
2017-04-14Drop dependency on hslua-aesonAlbert Krewinkel6-23/+15
Pushing values to the lua stack via custom functions is faster and more flexible.
2017-04-14Push blocks via lua constructors and constantsAlbert Krewinkel2-78/+336
All element creation tasks are handled by lua functions defined in the pandoc module.
2017-04-14s/safed/saved/Alexander Krotov1-1/+1
2017-04-14Push inlines via lua constructors and constantsAlbert Krewinkel1-41/+29
All element creation tasks are handled in the lua module.
2017-04-13Use lua constructors to push meta valuesAlbert Krewinkel4-34/+198
2017-04-13Improve lua module documentationAlbert Krewinkel1-140/+315
2017-04-12Use lowercase a4 for latex papersize example.John MacFarlane1-1/+1
2017-04-12Lua module: provide multi-param Inline constructorsAlbert Krewinkel1-4/+160
Instead of taking only a single argument containing the pre-packed element contents, `Inline` constructors now take the same arguments as the respective filter and `Custom` writer function
2017-04-12Lua filter: use destructured functions for inline filtersAlbert Krewinkel2-37/+63
Instead of taking the whole inline element, forcing users to destructure it themselves, the components of the elements are passed to the filtering functions.
2017-04-12Man writer: Fix handling of nested font commands.John MacFarlane3-13/+56
Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
2017-04-11Lua filter: use custom StackValue Inline instanceAlbert Krewinkel3-31/+156
Inline elements are no longer pushed and pulled via aeson's Value.
2017-04-10Docx writer: don't take "distArchive" from datadir.John MacFarlane1-2/+3
The docx writer takes components from the distribution's version of reference.docx when it can't find them in a user's custom reference.docx. (This sometimes happens because Word will sometimes omit components needed for larger documents when saving a simple one.) Previously, we allowed a reference.docx in the data directory (e.g. `~/.pandoc`) to be used as the distribution's reference.docx. This led to a bizarre situation where pandoc would produce a good docx using `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to `~/.pandoc/reference.docx`, it would then produce a corrupted docx. Closes #3322 (I think).
2017-04-09stack.yaml: update foundation to 0.0.6 (#3565)Alexander Krotov1-0/+1
foundation-0.0.4 from lts-8.8 does not build on FreeBSD
2017-04-09Use stack lts-8.8.John MacFarlane2-4/+2
This gives us a newer verison of executable-path, which we need for FreeBSD.
2017-04-07Fixed a typo (#3562)Sam Kim1-1/+1
2017-04-07Lua filter: improve doc filter performanceAlbert Krewinkel2-37/+56
Pandoc elements are pushed and pulled from the lua stack via custom instances.
2017-04-06Ensure correctness of StackValue instancesAlbert Krewinkel2-0/+29
2017-04-06Lua filter: Improve block filter performanceAlbert Krewinkel1-7/+44
Reading of simple block values from the lua stack is handled manually, but most block constructors are still handled via instances of aeson's Value type.