# Using shortcodes with .RawContent

**URL:** <https://discourse.gohugo.io/t/using-shortcodes-with-rawcontent/13488>\
**Category:** Uncategorized\
**Created:** [August 10, 2018, 12:07am UTC](https://discourse.gohugo.io/t/using-shortcodes-with-rawcontent/13488 "2018-08-10T00:07:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xaprb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/xaprb/32/290_2.png) [@xaprb](https://discourse.gohugo.io/u/xaprb)\
**Post date:** [August 10, 2018, 12:07am UTC](https://discourse.gohugo.io/t/using-shortcodes-with-rawcontent/13488/1 "2018-08-10T00:07:58Z")

</div>

I use `.RawContent` for RemarkJS slides. I also use custom shortcodes for things like embedding and math notation. Is there a way to use both together? For example, if I want to use `{{< math >}}\frac{a}{b}{{< /math >}}` in my markdown in the content of a file, and then emit that with `{{ .RawContent }}` in the Hugo template, can I get Hugo to parse and execute the shortcode in the markdown before outputting it?

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [August 13, 2018, 3:58pm UTC](https://discourse.gohugo.io/t/using-shortcodes-with-rawcontent/13488/2 "2018-08-13T15:58:33Z")

</div>

I think this GitHub issue would help here, if I understand your post correctly:

[Allow shortcode content to be processed by Blackfriday etc.](https://github.com/gohugoio/hugo/issues/4695)

That issue is currently scheduled for the next Hugo release, so it might be implemented soon.

I don’t know of another way to achieve your goal, sorry.
