When testing this new addition, I get the following error using the filter version (not the standalone tapp):
pandoc threshold-analysis.tmd -f markdown -t markdown -o test.md --filter /Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl
unmatched open brace in list
while executing
"llength $res"
(procedure "main" line 78)
invoked from within
"main $jsonData"
invoked from within
"puts -nonewline [main $jsonData]"
(file "/Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl" line 675)
Error running filter /Users/Torsten/Tcl/apps/pandoc-tcl-filter/pandoc-tcl-filter.tcl:
Filter returned error status 1
The 'tmd' file is my markdown file with Tcl code blocks. It seems that the $res
in line 616 of pandoc-tcl-filter.tcl is not a clean Tcl list.
I wish I could extract the Tcl code blocks into a Tcl file from the original 'tmd' file to test that it is not a problem with my code. But, could this be something in the filter code?