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

**URL:** https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674
**Category:** Development
**Created:** [2016 年 12 月 2 日午前 8:12 UTC](https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674 "2016-12-02T08:12:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jgujgu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jgujgu/32/64012_2.png) [@jgujgu](https://meta.discourse.org/u/jgujgu)
#### Post date: [2016 年 12 月 2 日午前 8:12 UTC](https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674/1 "2016-12-02T08:12:13Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![jgujgu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jgujgu/32/64012_2.png) [@jgujgu](https://meta.discourse.org/u/jgujgu)
#### Post date: [2016 年 12 月 3 日午後 6:49 UTC](https://meta.discourse.org/t/plugin-markdown-parsing-in-preview-working-but-not-in-post/53674/2 "2016-12-03T18:49:27Z")

</div>

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