Skip to content

Commit 69bfafe

Browse files
committed
Bump version to 0.2.7, update changelog
1 parent 0891af9 commit 69bfafe

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
`pandoc-lua-marshal` uses [PVP Versioning][].
44

5+
## 0.2.7
6+
7+
Released 2024-05-06.
8+
9+
- Let the behavior of `content` attributes on BulletList and
10+
OrderedList elements match that of the constructor by treating
11+
a list of Block elements as a list of single-block items. The
12+
following assertion now holds true:
13+
14+
``` lua
15+
local content = {pandoc.Plain "one", pandoc.Plain "two"}
16+
local bl = pandoc.BulletList{}
17+
bl.content = content
18+
assert(bl == pandoc.BulletList(content))
19+
```
20+
521
## 0.2.6
622

723
Released 2024-03-29.

pandoc-lua-marshal.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: pandoc-lua-marshal
3-
version: 0.2.6
3+
version: 0.2.7
44
synopsis: Use pandoc types in Lua
55
description: This package provides functions to marshal and unmarshal
66
pandoc document types to and from Lua.

test/test-block.lua

+7
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ return {
5454
blist:clone().content
5555
)
5656
end),
57+
test('behavior is consistent with constructor', function ()
58+
local content = {Para 'one', CodeBlock 'print "Hello"'}
59+
local bl1 = BulletList(content)
60+
local bl2 = BulletList{}
61+
bl2.content = content
62+
assert.are_equal(bl1, bl2)
63+
end),
5764
test('mixing types works', function ()
5865
local one = Plain 'one'
5966
local two = 'two'

0 commit comments

Comments
 (0)