Html formating in site.gohtml can trigger <pre><code> output
cameronelliott opened this issue ยท 1 comments
cameronelliott commented
Let me start by saying, I think this is likely my issue. ๐
I have a block of HTML and template like so:
<div class="container">
<div class="posts">
{{ range .Site.Pages.WithTag .Title }}
<div class="post">
<div><a href="{{ $.Rel .Url }}" class="title is-size-5">{{ .Title }}</a></div>
<div class="subtitle is-6">{{ template "date" .Date }}</div>
</div>
{{ end }}
</div>
Depending upon how I format the indents,the output may or may not have <code><pre>
blocks in the output. Just adding/dropping spaces can trigger this output.
Does anyone know why this is happening?
Thank you in advance.
piranha commented
I think it's markdown processing, because it parses 4 spaces before text as a code block!