@Arkshine さんから、画像の前に空白を追加するこの解決策が届きました:
add_filter('wp_discourse_excerpt', [$this, 'wp_discourse_excerpt'], 10, 1);
/**
* 任意の <img> タグの上に空白行を追加します。
* 目的は、Discourse がダウンロードした画像の Markdown を表示できないという不具合を防ぐことです。
*
* @param $post_content
*
* @return string
*/
public function wp_discourse_excerpt($post_content)
{
$post_content = preg_replace('/(<img\s)/i', "\n\n$1", $post_content);
$post_content = preg_replace('/[\n]{3,}/', "\n\n", $post_content);
return $post_content;
}