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