aboutsummaryrefslogtreecommitdiff
path: root/stack.yaml
AgeCommit message (Collapse)AuthorFilesLines
2021-12-13Lua: support topdown traversalsAlbert Krewinkel1-1/+2
The traversal order of filters can now be selected by setting the key `traverse` of the filter to either `'topdown'` or `'typewise'`; the default remains `'typewise'`. Topdown traversals can be cut short by returning `false` as a second value from the filter function. No child-element of the returned element is processed in that case.
2021-12-10Switch to released pandoc-lua-marshal-0.1.2Albert Krewinkel1-2/+1
Cell values are now marshaled as userdata objects; a constructor function for table cells is provided as `pandoc.Cell`.
2021-12-09Lua: update to latest pandoc-lua-marshal (0.1.1)Albert Krewinkel1-1/+2
- `walk` methods are added to `Block` and `Inline` values; the methods are similar to `pandoc.utils.walk_block` and `pandoc.utils.walk_inline`, but apply to filter also to the element itself, and therefore return a list of element instead of a single element. - Functions of name `Doc` are no longer accepted as alternatives for `Pandoc` filter functions. This functionality was undocumented.
2021-12-08Use latest dev version of ipynb.John MacFarlane1-1/+1
This should give us deterministic JSON output for mime bundles.
2021-12-06Ipynb reader & writer: properly handle cell "id".John MacFarlane1-1/+2
This is passed through if it exists (in Nb4); otherwise the writer will add a random one so that cells all have an "id". Closes #7728.
2021-12-02Allow unicode-transforms 0.4.0.John MacFarlane1-0/+2
2021-11-28stack.yaml: use pandoc-lua-marshal-0.1.0.1Albert Krewinkel1-2/+1
2021-11-27Lua: use package pandoc-lua-marshal (#7719)Albert Krewinkel1-1/+3
The marshaling functions for pandoc's AST are extracted into a separate package. The package comes with a number of changes: - Pandoc's List module was rewritten in C, thereby improving error messages. - Lists of `Block` and `Inline` elements are marshaled using the new list types `Blocks` and `Inlines`, respectively. These types currently behave identical to the generic List type, but give better error messages. This also opens up the possibility of adding element-specific methods to these lists in the future. - Elements of type `MetaValue` are no longer pushed as values which have `.t` and `.tag` properties. This was already true for `MetaString` and `MetaBool` values, which are still marshaled as Lua strings and booleans, respectively. Affected values: + `MetaBlocks` values are marshaled as a `Blocks` list; + `MetaInlines` values are marshaled as a `Inlines` list; + `MetaList` values are marshaled as a generic pandoc `List`s. + `MetaMap` values are marshaled as plain tables and no longer given any metatable. - The test suite for marshaled objects and their constructors has been extended and improved. - A bug in Citation objects, where setting a citation's suffix modified it's prefix, has been fixed.
2021-11-20Use released texmath.John MacFarlane1-3/+1
2021-11-16Use latest dev texmath.John MacFarlane1-1/+3
2021-11-08stack.yaml: require latest lpegAlbert Krewinkel1-1/+1
2021-11-04Lua: include lpeg module (#7649)Albert Krewinkel1-0/+1
Compiles the 'lpeg' library (Parsing Expression Grammars For Lua) into the program. Package maintainers may choose to rely on package dependencies to make lpeg available, in which case they can compile the with the constraint `lpeg +rely-on-shared-lpeg-library`.
2021-11-04Require latest hslua (2.0.1).Albert Krewinkel1-5/+5
This fixes issues with - misleading error messages when a required function parameter is omitted; - absent properties still being listed in the output of `pairs`; and - alias accessing leading to errors instead of returning `nil`, e.g. with `(pandoc.Str '').identifier`. Fixes: #7661 See also: #7657
2021-10-27Require latest skylighting (0.12.1).John MacFarlane1-2/+2
2021-10-23Use ipynb 0.1.0.2.John MacFarlane1-0/+2
With this change pandoc can be built with aeson >= 2.
2021-10-22Use citeproc 0.6, commonmark 0.2.2.1, commonmark-extensions 0.2.2John MacFarlane1-5/+3
2021-10-22Use texmath 0.12.3.2John MacFarlane1-2/+1
2021-10-22Use pandoc-types 1.22.1.John MacFarlane1-2/+1
2021-10-22Switch to hslua-2.0Albert Krewinkel1-2/+13
The new HsLua version takes a somewhat different approach to marshalling and unmarshalling, relying less on typeclasses and more on specialized types. This allows for better performance and improved error messages. Furthermore, new abstractions allow to document the code and exposed functions.
2021-10-12Revert "Depend on pandoc-types 1.23, remove Null constructor on Block."John MacFarlane1-2/+2
This reverts commit fb0d6c7cb63a791fa72becf21ed493282e65ea91.
2021-10-12cabal.project: Dependencies to build with aeson 2.John MacFarlane1-1/+1
2021-10-12Depend on latest dev version of commonmark.John MacFarlane1-2/+2
2021-10-11Require doclayout >= 0.3.1.1.John MacFarlane1-1/+1
This fixes recognition of "real widths" of emoji characters, which is important for tabular layout.
2021-10-10Stack: use latest doclayoutJohn MacFarlane1-0/+1
2021-10-10Use latest emojis.John MacFarlane1-0/+1
2021-10-01Depend on pandoc-types 1.23, remove Null constructor on Block.John MacFarlane1-2/+7
2021-09-22Use latest citeproc.John MacFarlane1-1/+1
2021-09-18Use skylighting-0.12, skylighting-core-0.12.John MacFarlane1-2/+2
This fixes highlighting issues with typescript, scala, and other syntaxes that include keyword lists from different syntaxes.
2021-09-16stack.yaml: use lts-18.10 resolver.John MacFarlane1-3/+1
2021-09-13Use latest dev version of texmath.John MacFarlane1-1/+2
2021-09-10Use latest dev citeproc.John MacFarlane1-1/+1
2021-09-09Use dev version of citeproc.John MacFarlane1-1/+2
2021-08-17Use released citeproc 0.5.John MacFarlane1-3/+1
2021-08-13Convert Quoted in bib entries to special Spans...John MacFarlane1-0/+1
before passing them off to citeproc. This ensures that we get proper localization and flipflopping if, e.g., quotes are used in titles. Closes jgm/citeproc#87.
2021-08-13Citeproc: avoid odd handling of quotes.John MacFarlane1-1/+1
citeproc changes allow us to ignore Quoted elements; citeproc now uses its own method for represented quoted things, and only localizes and flipflops quotes it adds itself. See #87. The one thing left to do is to convert Quoted elements in bibliography databases (esp. titles) to `Span ("",["csl-quoted"],[])` before passing them to citeproc, IF the localized quotes for the quote type match the standard inverted commas.
2021-08-13Removed quote localization from citeproc processing.John MacFarlane1-1/+5
This is now done in citeproc itself.
2021-07-18Use doctemplates 0.4.1 and citeproc 0.10.John MacFarlane1-4/+2
2021-07-17Use skylighting 0.11.John MacFarlane1-2/+2
2021-07-05Revamp note citation handling.John MacFarlane1-1/+1
Use latest citeproc, which uses a Span with a class rather than a Note for notes. This helps us distinguish between user notes and citation notes. Don't put citations at the beginning of a note in parentheses. (Closes #7394.)
2021-06-29Use dev version of citeproc.John MacFarlane1-1/+1
This eliminates double hyperlinks in author-in-text citations. Author-only citations are no longer hyperlinked. See jgm/citeproc#77.
2021-06-28Use dev version of citeproc.John MacFarlane1-0/+2
This fixes moving of punctuation inside quotes to conform to the CSL spec: only comma and period are moved, not question mark or exclamation point.
2021-06-28Require commonmark-pandoc >= 0.2.2.1.John MacFarlane1-0/+1
This fixes task lists with multiple paragraphs.
2021-06-22Use dev version of doctemplates.John MacFarlane1-0/+2
2021-06-20Bump to 2.14.0.3, update changelog, require latest skylighting.John MacFarlane1-0/+2
2021-06-20Use lts-18.0 stack resolver.John MacFarlane1-10/+1
2021-06-20Require commonmark 0.2.1.John MacFarlane1-1/+1
2021-06-05Require citeproc 0.4.0.1.John MacFarlane1-1/+1
This fixes a bug which led to doubled "et al." in some (rare) circumstances.
2021-05-29Use commonmark-extensions 0.2.1.2John MacFarlane1-1/+1
2021-05-28Use latest commonmark.John MacFarlane1-0/+3
2021-05-25Use haddock-library-1.10.0Albert Krewinkel1-0/+1