Skip to content

Commit

Permalink
hs-pandoc-lua-marshal: update to 0.3.0.
Browse files Browse the repository at this point in the history
## 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))
    ```
  • Loading branch information
0-wiz-0 committed Jan 10, 2025
1 parent 6c2f8b8 commit 49aeacc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
9 changes: 6 additions & 3 deletions devel/hs-pandoc-lua-marshal/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# $NetBSD: Makefile,v 1.11 2024/05/09 01:32:06 pho Exp $
# $NetBSD: Makefile,v 1.12 2025/01/10 10:12:25 wiz Exp $

DISTNAME= pandoc-lua-marshal-0.2.6
PKGREVISION= 1
DISTNAME= pandoc-lua-marshal-0.3.0
CATEGORIES= devel

MAINTAINER= [email protected]
COMMENT= Use pandoc types in Lua
LICENSE= mit

HASKELL_UNRESTRICT_DEPENDENCIES+= \
hslua-list

.include "../../converters/hs-aeson/buildlink3.mk"
.include "../../lang/hs-hslua/buildlink3.mk"
.include "../../lang/hs-hslua-list/buildlink3.mk"
.include "../../lang/hs-hslua-marshalling/buildlink3.mk"
.include "../../lang/hs-lua/buildlink3.mk"
.include "../../textproc/hs-pandoc-types/buildlink3.mk"
.include "../../devel/hs-safe/buildlink3.mk"
.include "../../lang/hs-hslua-list/buildlink3.mk"
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"
10 changes: 7 additions & 3 deletions devel/hs-pandoc-lua-marshal/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@comment $NetBSD: PLIST,v 1.4 2024/05/03 09:41:05 pho Exp $
@comment $NetBSD: PLIST,v 1.5 2025/01/10 10:12:25 wiz Exp $
lib/pandoc-lua-marshal-${PKGVERSION}/${HS_VERSION}/package-description
lib/pandoc-lua-marshal-${PKGVERSION}/${HS_VERSION}/package-id
${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/AST.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/AST.hi
Expand All @@ -12,6 +14,9 @@ ${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Attr.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Block.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Block.hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Block.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Caption.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Caption.hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Caption.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Cell.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Cell.hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Marshal/Cell.p_hi
Expand Down Expand Up @@ -80,15 +85,14 @@ lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Walk.hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Text/Pandoc/Lua/Walk.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
lib/pandoc-lua-marshal-${PKGVERSION}/${HS_VERSION}/package-description
lib/pandoc-lua-marshal-${PKGVERSION}/${HS_VERSION}/package-id
share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/LICENSE
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/CHANGELOG.md
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/README.md
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-AST.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Alignment.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Attr.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Block.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Caption.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Cell.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-Citation.html
${PLIST.doc}share/doc/${HS_PLATFORM}/pandoc-lua-marshal-${PKGVERSION}/html/Text-Pandoc-Lua-Marshal-CitationMode.html
Expand Down
7 changes: 4 additions & 3 deletions devel/hs-pandoc-lua-marshal/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.11 2024/05/09 01:32:06 pho Exp $
# $NetBSD: buildlink3.mk,v 1.12 2025/01/10 10:12:25 wiz Exp $

BUILDLINK_TREE+= hs-pandoc-lua-marshal

.if !defined(HS_PANDOC_LUA_MARSHAL_BUILDLINK3_MK)
HS_PANDOC_LUA_MARSHAL_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.hs-pandoc-lua-marshal+= hs-pandoc-lua-marshal>=0.2.6
BUILDLINK_ABI_DEPENDS.hs-pandoc-lua-marshal+= hs-pandoc-lua-marshal>=0.2.6nb1
BUILDLINK_API_DEPENDS.hs-pandoc-lua-marshal+= hs-pandoc-lua-marshal>=0.3.0
BUILDLINK_ABI_DEPENDS.hs-pandoc-lua-marshal+= hs-pandoc-lua-marshal>=0.3.0
BUILDLINK_PKGSRCDIR.hs-pandoc-lua-marshal?= ../../devel/hs-pandoc-lua-marshal

.include "../../converters/hs-aeson/buildlink3.mk"
Expand All @@ -16,6 +16,7 @@ BUILDLINK_PKGSRCDIR.hs-pandoc-lua-marshal?= ../../devel/hs-pandoc-lua-marshal
.include "../../lang/hs-lua/buildlink3.mk"
.include "../../textproc/hs-pandoc-types/buildlink3.mk"
.include "../../devel/hs-safe/buildlink3.mk"
.include "../../lang/hs-hslua-list/buildlink3.mk"
.endif # HS_PANDOC_LUA_MARSHAL_BUILDLINK3_MK

BUILDLINK_TREE+= -hs-pandoc-lua-marshal
8 changes: 4 additions & 4 deletions devel/hs-pandoc-lua-marshal/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.4 2024/05/03 09:41:05 pho Exp $
$NetBSD: distinfo,v 1.5 2025/01/10 10:12:25 wiz Exp $

BLAKE2s (pandoc-lua-marshal-0.2.6.tar.gz) = f45eb1af9c60c4a8b09f92df6e07b98aff32fbe6e77841da515df247f7e248bb
SHA512 (pandoc-lua-marshal-0.2.6.tar.gz) = 22035a8e3ea5f854ecaab116e11c46321818ce85e063574546bab6134037ee2bbcd984a9236b3ff1b013f47f5fd5df2d0ceca9a8ffddb2ed3c374fbf1f8a7a05
Size (pandoc-lua-marshal-0.2.6.tar.gz) = 38722 bytes
BLAKE2s (pandoc-lua-marshal-0.3.0.tar.gz) = 64886d5e8972915f44ec73dda21b981b8dd3b68a633caa1730e62d812fc01a79
SHA512 (pandoc-lua-marshal-0.3.0.tar.gz) = 5ba49e9ed0a17e7091331bfae1e8fcc34b42e3863d1f3e7d9eed3053c587197ccbaa278d7e109cce4572cd30b44e5a9971bc7608fc657787bfcc980ef4c99639
Size (pandoc-lua-marshal-0.3.0.tar.gz) = 42833 bytes

0 comments on commit 49aeacc

Please sign in to comment.