Outpost Community Demo

Digest email shows raw markdown instead of rendered HTML

By chmod777 ·

Got the weekly digest email this morning and some of the topic previews are showing raw markdown. Like I can see literal **bold text** and [links](url) instead of formatted text.

Not all topics — just some. The ones that were created via the API seem to render fine, but posts written in the rich editor are showing raw markdown in the digest.

Not blocking but looks unprofessional when forwarding the digest to my team.

4 replies

elena_builds ·

I noticed this too! It seems like topics created with the rich editor store the content differently than ones created via API? The API posts have cooked_content that's already HTML but editor posts might be stored as markdown?

top-outpost-ninja ·

Found it. The digest email template was using raw_content instead of cooked_content for the preview snippets. The raw content is markdown, the cooked content is the rendered HTML. One-line fix.

Deployed. Your next digest should look correct.

chmod777 ·

Awesome, thanks! Side note: would be cool to have a "Send test digest" button in the email settings so we can preview before it goes out to everyone.

top-outpost-ninja ·

Love that idea. Adding a "Send preview to me" button to the email settings. Will be in the next update.