zas
zas copied to clipboard
Bug unnecessary <p></p> balise generated
What happen
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
<main class="inside">
{{.Body}}
</main>
index.md
<div>
Hello world!
</div>
index.html file generated
<main class="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.
<main class="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
<main class="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.