Hugo

Function that allows to bypass HTML parser

A function that would allow to bypass HTML parser, and hence would allow users to output raw markdown. Might prove handy in case one wants to output the raw markdown code.

Example use-case:
{{ .Content | raw }} # where raw is the function's name

Thoughts?

There are several ways to accomplish showing source code unaltered. For the use case you described, one could use readFile, for instance. With output formats one could publish non-HTML text files to their site. Other methods for different use-cases abound. :slight_smile:

.RawContent
raw markdown content without the front matter.

See: https://gohugo.io/variables/page/#page-variables

2 Likes

@onedrawingperday it’s exactly what I was talking about! Great!

@maiki thanks for the workaround. Noted.