aboutsummaryrefslogtreecommitdiff
path: root/stack.yaml
AgeCommit message (Collapse)Author
2022-01-12Use commonmark-extensions 0.2.3.John MacFarlane
2022-01-12Use ipynb 0.2.John MacFarlane
2022-01-11Use citeproc 0.6.0.1.John MacFarlane
2022-01-11Use latest texmath (0.12.4).John MacFarlane
2022-01-09Update commits for dev dependencies, allow text 2.0.John MacFarlane
2022-01-09Use dev version of citeproc.John MacFarlane
2022-01-01stack.yaml: add missing hslua-aeson entry to extra-depsAlbert Krewinkel
2021-12-30Use latest commonmark-hs.John MacFarlane
This allows a bare-word class attribute on fenced divs, as pandoc's Markdown reader now does.
2021-12-23Lua: use released pandoc-lua-marshal-0.1.3.Albert Krewinkel
Inlines, Blocks, and List objects now have an `__eq` metamethod, testing equality by comparing two lists element-wise.
2021-12-21Lua: simplify and deprecate function `pandoc.utils.equals`Albert Krewinkel
The function is no longer required for element comparisons; it is now an alias for the `==` operator.
2021-12-21Put sourcepos attribute on header, not enclosing div...John MacFarlane
with `-f commonmark+sourcepos`. Closes #7769.
2021-12-19Lua: change representation of TableHead, TableFoot, and Row values.Albert Krewinkel
The objects now also follow the principle that element attributes are accessible through the `.attr` field. Rows in `TableHead` and `TableFoot` are available via the `.rows` field. Row objects have a `.cells` field, containing the list of table cells. Closes: #7718
2021-12-18Use latest doctemplates, commonmark-extensions in stack.yaml.John MacFarlane
2021-12-14Use dev texmath.John MacFarlane
2021-12-13Lua: support topdown traversalsAlbert Krewinkel
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 Krewinkel
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 Krewinkel
- `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 MacFarlane
This should give us deterministic JSON output for mime bundles.
2021-12-06Ipynb reader & writer: properly handle cell "id".John MacFarlane
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 MacFarlane
2021-11-28stack.yaml: use pandoc-lua-marshal-0.1.0.1Albert Krewinkel
2021-11-27Lua: use package pandoc-lua-marshal (#7719)Albert Krewinkel
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 MacFarlane
2021-11-16Use latest dev texmath.John MacFarlane
2021-11-08stack.yaml: require latest lpegAlbert Krewinkel
2021-11-04Lua: include lpeg module (#7649)Albert Krewinkel
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 Krewinkel
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 MacFarlane
2021-10-23Use ipynb 0.1.0.2.John MacFarlane
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 MacFarlane
2021-10-22Use texmath 0.12.3.2John MacFarlane
2021-10-22Use pandoc-types 1.22.1.John MacFarlane
2021-10-22Switch to hslua-2.0Albert Krewinkel
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 MacFarlane
This reverts commit fb0d6c7cb63a791fa72becf21ed493282e65ea91.
2021-10-12cabal.project: Dependencies to build with aeson 2.John MacFarlane
2021-10-12Depend on latest dev version of commonmark.John MacFarlane
2021-10-11Require doclayout >= 0.3.1.1.John MacFarlane
This fixes recognition of "real widths" of emoji characters, which is important for tabular layout.
2021-10-10Stack: use latest doclayoutJohn MacFarlane
2021-10-10Use latest emojis.John MacFarlane
2021-10-01Depend on pandoc-types 1.23, remove Null constructor on Block.John MacFarlane
2021-09-22Use latest citeproc.John MacFarlane
2021-09-18Use skylighting-0.12, skylighting-core-0.12.John MacFarlane
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 MacFarlane
2021-09-13Use latest dev version of texmath.John MacFarlane
2021-09-10Use latest dev citeproc.John MacFarlane
2021-09-09Use dev version of citeproc.John MacFarlane
2021-08-17Use released citeproc 0.5.John MacFarlane
2021-08-13Convert Quoted in bib entries to special Spans...John MacFarlane
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 MacFarlane
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 MacFarlane
This is now done in citeproc itself.