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

Bug unnecessary <p></p> balise generated #16

Open
lolorenzo777 opened this issue Apr 27, 2022 · 0 comments
Open

Bug unnecessary <p></p> balise generated #16

lolorenzo777 opened this issue Apr 27, 2022 · 0 comments

Comments

@lolorenzo777
Copy link

lolorenzo777 commented Apr 27, 2022

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.
Fund with Polar
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

1 participant