mirror of
https://github.com/retorquere/zotero-better-bibtex.git
synced 2022-05-23 09:36:29 +03:00
new lua filter
This commit is contained in:
@@ -7,19 +7,15 @@ function Cite(cite)
|
||||
return nil
|
||||
end
|
||||
|
||||
printed = false
|
||||
function Block(block)
|
||||
body = ''
|
||||
if not printed then
|
||||
printed = true
|
||||
for id, _ in pairs(citekeys) do
|
||||
body = body .. id .. ' '
|
||||
end
|
||||
function Pandoc(doc)
|
||||
body = {}
|
||||
for citekey, _ in pairs(citekeys) do
|
||||
table.insert(body, pandoc.Plain(citekey))
|
||||
end
|
||||
return pandoc.Plain(body)
|
||||
return pandoc.Pandoc(body)
|
||||
end
|
||||
|
||||
return {
|
||||
{ Cite = Cite },
|
||||
{ Block = Block },
|
||||
{ Pandoc = Pandoc },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user