Path to this page:
./
devel/hs-pandoc-lua-marshal,
Use pandoc types in Lua
Branch: CURRENT,
Version: 0.3.0,
Package name: hs-pandoc-lua-marshal-0.3.0,
Maintainer: pkgsrc-usersThis package provides functions to marshal and unmarshal pandoc document
types to and from Lua.
The values of most types are pushed to pandoc as "userdata" objects that
wrap a stable pointer to the Haskell value; these objects come with methods
to access and modify their properties.
Sequences are pushed as normal Lua tables, but are augmented with
convenience functions.
Master sites:
Filesize: 41.829 KB
Version history: (Expand)
- (2025-01-10) Updated to version: hs-pandoc-lua-marshal-0.3.0
- (2024-05-09) Updated to version: hs-pandoc-lua-marshal-0.2.6nb1
- (2024-05-03) Updated to version: hs-pandoc-lua-marshal-0.2.6
- (2023-11-02) Updated to version: hs-pandoc-lua-marshal-0.2.2nb1
- (2023-10-30) Updated to version: hs-pandoc-lua-marshal-0.2.2
- (2023-10-09) Updated to version: hs-pandoc-lua-marshal-0.2.0nb2
CVS history: (Expand)
2025-01-10 11:12:25 by Thomas Klausner | Files touched by this commit (4) | |
Log message:
hs-pandoc-lua-marshal: update to 0.3.0.
## 0.3.0
Released 2024-12-07.
* Add method `normalize` to Pandoc objects.
This returns a normalized document by merging adjacent spaces in inlines
and by modifying tables.
* Push Captions as userdata, move code to separate module.
* Add tests for RawInline and its properties
* Allow treatment of custom elements as singleton lists.
* Remove `pandoc` prefix on table components (jgm/pandoc#8574).
## 0.2.9
Released 2024-10-01.
- Update list module, thereby introducing a new method `iter`;
the function returns an iterator that steps through list
values on each call.
- Added support for `__toinline` and `__toblock` metamethods. If
the metamethods are available on a Lua object and return an
appropriate value, then that returned value will be used
during unmarshalling.
## 0.2.8
Released 2024-09-21.
- Update list module, thereby introducing a new method `at` and
an extended constructor for List types.
## 0.2.7.1
Released 2024-07-02.
- Relaxed the upper bound of tasty-quickcheck, used in tests.
Now allows version 0.11.
- Update documentation on constructors; the descriptions now
match those in the pandoc docs.
## 0.2.7
Released 2024-05-06.
- Let the behavior of `content` attributes on BulletList and
OrderedList elements match that of the constructor by treating
a list of Block elements as a list of single-block items. The
following assertion now holds true:
``` lua
local content = {pandoc.Plain "one", pandoc.Plain "two"}
local bl = pandoc.BulletList{}
bl.content = content
assert(bl == pandoc.BulletList(content))
```
|
2024-05-09 03:32:57 by Masatake Daimon | Files touched by this commit (1137) |
Log message:
Recursive revbump after changing the default Haskell compiler
|
2024-05-03 11:41:05 by Masatake Daimon | Files touched by this commit (4) |
Log message:
devel/hs-pandoc-lua-marshal: Update to 0.2.6
0.2.6 - Released 2024-03-29.
Fixed a bug that caused problems with empty Block lists in the content
attributes of Div, Figure, and BlockQuote elements.
0.2.5 - Released 2024-03-04.
The clone method on Blocks and Inlines elements now creates deep copies
of the lists.
0.2.4 - Released 2024-01-19.
Relaxed upper bound for aeson, allowing aeson-2.2.*.
0.2.3 - Released 2024-01-19.
Relaxed upper bound for text, containers, and bytestring, allowing
text-2.1, containers-0.7, and bytestring-0.12.
|
2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141) |
Log message:
Revbump all Haskell after updating lang/ghc96
|
2023-10-30 19:12:34 by Masatake Daimon | Files touched by this commit (4) |
Log message:
devel/hs-pandoc-lua-marshal: Update to 0.2.2
0.2.2 - Released 2023-03-15.
* Add __tostring metamethods to Blocks and Inlines.
0.2.1.1 - Released 2023-03-13.
* The version constraints for hslua packages have been relaxed; other
changes in hslua 2.3.* do not affect this package.
0.2.1 - Released 2023-02-11.
* All userdata types have been given a __tojson metamethod. The methods
return the default JSON representations of AST objects.
|
2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988) |
Log message:
Bump Haskell packages after updating lang/ghc94
|
2023-01-27 17:01:05 by Masatake Daimon | Files touched by this commit (4) |
Log message:
devel/hs-pandoc-lua-marshal: Update to 0.2.0
0.2.0
* Depend on pandoc-types 1.23: the Null Block constructor has been removed,
and a Figure constructor has been added.
* Support for Lua 5.3 has been dropped; the package now requires hslua 2.2
or later.
* The implementation for List has been moved to the separate hslua-list
module. This module no longer contains C code.
0.1.7 - Released 2022-07-16
* Allow Blocks to be passed as Caption value. The resulting caption has the
Blocks as its long version and no short version.
* Add clone method to Pandoc elements.
0.1.6.1 - Released 2022-06-10
* Provide better error messages when fuzzy retrieval of Inlines or Blocks
fails.
* Relax upper bound for text, allow text-2.0.
0.1.6 - Released 2022-06-03
* Fix applyFully: the function always traversed the document type-wise,
never topdown.
* Avoid shadowing of a function name that was added in hslua-2.2.
* Support concatenating of Pandoc values with the .. operator.
0.1.5.1 - Released 2022-02-19
* Relax upper bound for lua and hslua.
0.1.5 - Released 2022-02-17
* Allow any type of callable object as argument to List functions filter,
map, and find_if. These previously required the argument to be of type
function, which was too restrictive.
* Inline: the type of Image captions is now Inlines instead of List.
|
2022-08-20 10:08:24 by Thomas Klausner | Files touched by this commit (211) |
Log message:
hs*: recursive bump for new dependencies needed
for hs-aeson, hs-vector
|