File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
` pandoc-lua-marshal ` uses [ PVP Versioning] [ ] .
4
4
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
+
5
21
## 0.2 .6
6
22
7
23
Released 2024 - 03 - 29.
Original file line number Diff line number Diff line change 1
1
cabal-version : 2.4
2
2
name : pandoc-lua-marshal
3
- version : 0.2.6
3
+ version : 0.2.7
4
4
synopsis : Use pandoc types in Lua
5
5
description : This package provides functions to marshal and unmarshal
6
6
pandoc document types to and from Lua.
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ return {
54
54
blist :clone ().content
55
55
)
56
56
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 ),
57
64
test (' mixing types works' , function ()
58
65
local one = Plain ' one'
59
66
local two = ' two'
You can’t perform that action at this time.
0 commit comments