Having raw_html in a system created post

I’ve run into a similar problem before where the code that creates the raw post content has extra spaces at the beginning of some of its lines. Since the raw output is interpreted as Markdown, extra spaces at the beginning of a line will be considered to be a code block. Depending on how you are creating the raw content, you might be able to fix the problem by reformatting your HTML.