Hello,
I try to create a JavaScript based shortcode e.g.
<script>
jQuery(function() {
var obj = { {{- .Inner -}} }
});
</script>
If I run the shortcode within the markdown file with
{{< js >}}
foo : "bar",
num : 123
{{< /js >}}
of with
{{% js %}}
foo : "bar",
num : 123
{{% /js %}}
Hugo quotes the inner content to
"foo : \"bar\",\nnum : 123"
and my JSON object does not work anymore. So how can I tell Hugo that the inner content of the shortcode should be exactly put into the HTML content without any adding anything, so is there something like .RawInner ?
Thanks
Phil