On the way to building a pack for the telegra.ph API, i hit a snag.
80% of the pack works. Now for the biggest parts: displaying content imported from telegra.ph… I would even like to be able to use the new two-way sync table.
Here’s how it works…
The step to import content from telegra.ph :
JSON (ok) >> Html (ok) > Display in a canvas (ko)
Hi @j.b_o - It is correct that while Coda can display HTML as rich text, it doesn’t have support for all HTML elements and features. You can see some examples of what does and doesn’t work here:
Cleaning up the HTML before you return it to Coda is a good idea, although I’m not sure that specific library will perform. The error you are seeing is because somewhere in the library it is using an eval() expression, which we don’t allow in Packs. You could try to find an alternative library, or try to do some of the cleaning yourself.
I authored the Rich Text Tools Pack and it just uses the same HTML/Markdown parsing and rendering that is build into the Packs SDK. You can see the full source code of the Pack here:
I finally chose to release the pack without two-way synchronized tables. Too complicated to implement without using the canva field. It is nevertheless possible to create a custom table to have similar workflow.