cmark-gfm-hs
cmark-gfm-hs copied to clipboard
Tables not supported for gfm output
Line 484 of CMarkGFM.hsc:
TABLE aligns -> error "constructing table not supported"
TABLE_ROW -> error "constructing table row not supported"
TABLE_CELL -> error "constructing table cell not supported"
It would be great if tables could be supported. Is there some problem? Perhaps I can help.
Also: this library will abort with an uncatchable runtime error, crashing any program that uses it, if you try to render a table node. That is not good behavior for a library. error should be used only in "should not happen" cases, i.e. for programming errors.
Looking into this further, I notice that cmark-gfm lacks any good way to programatically construct the nodes provided by extensions. So, for example set_table_alignments is a static function in tables.c, not an exported function. Is there a reason for this?
Not sure if this is not already fixed?
Not yet, I don't believe.