Hi folks,

I am new to Pandoc. I am trying to write a filter using Python. I wanted to create and return a "Table" as part of the filter function. I understood that the Table constructor takes 5 arguments. But the details of them (at least from the Python parlance) are not available. 

My novice code to construct the Table looked like the following

            tab_le = Table ([Str("This is the title of the table")], # Table caption?
                            ["left", "left"], # Alignment?
                            [0.5, 0.5], # Relative width of the columns?
                            [Str("C1"), Str("C2")], #Column Header name?
                            [   # Table rows?
                               [Str("A1"), Str("B1")], 
                               [Str("A2"), Str("B2")], 
                               [Str("A3"), Str("B3")]

                            ] );

 With that code, i get the following error

>>>>
Error in $[373][0]: expected Object, encountered String
<<<<<

I am sure i am grossly off in the constructor. Can someone help me to create Table?


Thanks and with best regards,
Nizam



--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1be02d85-bd95-4709-82f8-f6a5460930c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.