I’m using only the API of Discourse with a custom UI.
I want to support some custom Markdown extensions which I’d like the “cooked” content of a post to honor. I think there are probably a few ways to do this:
- Get Discourse to use a custom Markdown parser
- When posting, convert the Markdown to HTML before submitting it to the Discourse API
- Getting access to the “raw” post in addition to the “cooked” post after it’s been submitted
1 won’t work for me if it requires a code change to Discourse, because I’d like to use the hosted version.
2 is fine, but we’re still largely limited by what gets “cooked”. For example, we may want to show some dynamic content.
Increasingly I think just getting access to the raw content of the original post (3) is probably what I want. Is there a way to do this? Can “cooking” content be disabled via a setting, or the “raw” content obtained via some API call?