You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we generate a simple .md file with the field {{.Body}} within the layout the html file contains <p></p> at the begining and at the end of the body.
Example
layout.html
<mainclass="inside">
{{.Body}}
</main>
index.md
<div>
Hello world!
</div>
index.html file generated
<mainclass="inside"><p></p><div>
Hello world
</div><p></p></main>
What I'm expecting
The index.html file generated should not contain any additionnal <p></p> output nor additional blank chars.
<mainclass="inside"><div>
Hello world
</div></main>
Testing
If the markdown input file does not start with an html balise, then the generator produce additional blank only, and not the <p></p> balises
index.md
Hello world!
index.html generated
<mainclass="inside"><p>Hello world</p></main>
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
What happen
When we generate a simple
.md
file with the field{{.Body}}
within the layout thehtml
file contains<p></p>
at the begining and at the end of the body.Example
layout.html
index.md
index.html file generated
What I'm expecting
The index.html file generated should not contain any additionnal
<p></p>
output nor additional blank chars.Testing
If the markdown input file does not start with an html balise, then the generator produce additional blank only, and not the
<p></p>
balisesindex.md
index.html generated
Upvote & Fund
The text was updated successfully, but these errors were encountered: