blob: c2c90fb1e580fa8b09e794066a07e10901d79dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
title = ''
titlefilter = {
Str = function (element)
title = title .. element.text
end,
Code = function (element)
title = title .. element.text
end,
Space = function (element)
title = title .. ' '
end,
}
function Pandoc(doc)
pandoc.List.map(
doc.meta.title,
function (inline)
pandoc.walk_inline(pandoc.Span(inline), titlefilter)
end
)
print(title)
os.exit(0)
end
|