You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use PrettyTables with Literate, and when the table is return using the Markdown backend, Literate renders it as a code block.
In fredrikekre/Literate.jl#262 the Literate maitainers suggest that this might be because PrettyTables does not rely on show. Is there an easy fix / workaround?
The text was updated successfully, but these errors were encountered:
Actually PrettyTables just print to the selected IO. Would it work if you call str = pretty_table(String, ...), which will render the table as a string, and then show(stdout, MIME("text/markdown"), str) ?
No That won't work because a String isn't showable as text/markdown. I think something like the PrettyTable struct from fredrikekre/Literate.jl#262 (comment) would be useful. That would let the frontend decide what formatting makes sense to display.
I am trying to use PrettyTables with Literate, and when the table is return using the Markdown backend, Literate renders it as a code block.
In fredrikekre/Literate.jl#262 the Literate maitainers suggest that this might be because PrettyTables does not rely on
show
. Is there an easy fix / workaround?The text was updated successfully, but these errors were encountered: