I  am either doing something wrong or the listAttributes are not working.  To make sure it was not my filter I did the following:

 

Pandoc –print-default-data-file sample.lua >sample.lua

 

Then I added a log function to sample.lua that was created by the above command like:

 

local function log (msg)

file = io.open("log.txt","a")

file:write(msg .. "\n")

        file:close()

end

 

 

This was so I could see the output.  Yes it continues to append to log.txt  in the folder but it was just for simple testing. 

 

Finally I added this line to the ordered list function.

 

Log(attributes(items.listAttributes))

 

The attributes function comes in the sample.lua and is supposed to print all the attributes you send it.  Well this says it is nil and errors.  I have  tried putting if statements and print statements of all kinds in and I can not get the listAttributes to show up on items.  After doing some testing it seems the items passed into orderedList is just a table of items so there are no attributes on it. 

 

When I read the pandoc documents  it explains that an orderedList has listAttributes.  How do I get them since the above test shows that I can’t get them from items in the orderedList function. 

 

As I said in a previous email I am able to get the style and start values from json but not from the lua API.  I have to be doing something wrong unless no one has tried this before and that would be shocking.

 

 

 

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/000001d94629%24b6cc3520%2424649f60%24%40blinksoft.com.