Getting .Content for page as markdown?

I have a project that requires stitching together a quite large amount of markdown files into a single page. Currently I am trying to do this by structuring it as a leaf bundle with an index.md with a shortcode containing the following:

{{ range $.Page.Resources.ByType "page" }}
  {{ .Content }}                                                              
{{ end }}

This does add the content of the pages, but it does so as raw html, not Markdown.
Is there any way to have .Content not render the markdown into html?

Replace .Content with .RawContent should work.

It mostly works. The only issue is that it doesn’t seem to like non-ascii characters, making + appear as &#43.

Those chars were escaped, please use RawContent | safeHTML instead.

1 Like

Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.