I am trying to have a script create a new post with some html elements in the post. Ex. want to build a table in the script, and have it send that table to the post as a html table.
@DavidB as you’ve found the ?source=html is for converting HTML to a rich-text (mobiledoc) document but this is a lossy operation.
However, for HTML cards we do have a workaround You can use the same HTML comments that we use when generating our HTML source code from rich-text documents to wrap a HTML card and have the source preserved as-is, eg…