Plugin markdown parsing in preview working, but not in post?

I have a quick question about how to get the markdown parser to parse in posts, “cooking” them. Currently, my implementation successfully cooks in a preview, but not in a post. I’ve mimicked the functionality present in discourse-spoiler-alert, particularly this file:

https://github.com/discourse/discourse-spoiler-alert/blob/master/assets/javascripts/lib/discourse-markdown/spoiler-alert.js.es6

Essentially, if I have [spoiler]hello[/spoiler] while editing, it shows up successfully changed in the preview, but unsuccessfully, raw in posts.

I don’t know what changed, but my markdown now gets parsed everywhere. Thank goodness. :sweat_smile:

1 Like