Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html formating in site.gohtml can trigger <pre><code> output #108

Closed
cameronelliott opened this issue Dec 2, 2020 · 1 comment
Closed

Comments

@cameronelliott
Copy link
Contributor

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
Copy link
Owner

piranha commented Jan 25, 2021

I think it's markdown processing, because it parses 4 spaces before text as a code block!

@piranha piranha closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants