mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-27 18:56:34 +00:00
Lua: re-add content property to Link elements
This was a regression introduced in version 2.15. Fixes: #7647
This commit is contained in:
@@ -148,6 +148,16 @@ return {
|
||||
end)
|
||||
}
|
||||
},
|
||||
group "Inline elements" {
|
||||
test('Link has property `content`', function ()
|
||||
local link = pandoc.Link('example', 'https://example.org')
|
||||
assert.are_same(link.content, {pandoc.Str 'example'})
|
||||
|
||||
link.content = 'commercial'
|
||||
link.target = 'https://example.com'
|
||||
assert.are_equal(link, pandoc.Link('commercial', 'https://example.com'))
|
||||
end)
|
||||
},
|
||||
group "Block elements" {
|
||||
group "BulletList" {
|
||||
test('access items via property `content`', function ()
|
||||
|
||||
Reference in New Issue
Block a user