I’m trying to create a post using the API. I want an option to have the text you send inserted into a Markdown block, because I write in Markdown, and I want Ghost to be as close to that as possible.
I’ve successfully used the method in the docs to send the text as an HTML block:
{"posts":[{"title":"HTML Card Test","html":"<!--kg-card-begin: html-->\n<p>My post content. Work in progress...</p>\n<!--kg-card-end: html-->","status":"published"}]}
However, my attempt to make content in a Markdown card was not as successful.
{"posts":[{"id":"688cbc3781bb8c0001fef143","title":"Test Note","html":"<!--kg-card-begin: markdown-->\n# First Heading\nSome text\n\n\n\n\n\n<!--kg-card-end: markdown-->","status":"draft","updated_at":"2025-09-04T18:28:56.000Z"}]
I found this post which references it, and I found it was used in a few places in the source code, but I can’t get it working for myself. Does it just not work through the admin API?
