# Post.summary includes \<p\> tag -- intentional or bug?

**URL:** <https://zola.discourse.group/t/post-summary-includes-p-tag-intentional-or-bug/745>\
**Category:** Uncategorized\
**Created:** [January 10, 2021, 6:39am UTC](https://zola.discourse.group/t/post-summary-includes-p-tag-intentional-or-bug/745 "2021-01-10T06:39:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljad82](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@ljad82](https://zola.discourse.group/u/ljad82)\
**Post date:** [January 10, 2021, 6:39am UTC](https://zola.discourse.group/t/post-summary-includes-p-tag-intentional-or-bug/745/1 "2021-01-10T06:39:36Z")

</div>

I am trying to stylize my homepage. I’m using the` <!-- more -->` tag to get a summary and `{{ post.summary | markdown | safe }}` in the `macros.html` as recommended in the docs. The problem is that the formatted text comes with a` <p>` opening tag at the beginning, e.g.

`{{ post.summary | markdown | safe }}`

becomes

`<p> This is the first line of my blog post. You have no idea what's coming next...`

and without the closing `</p>` tag.

This initial `<p>` tag is causing me formatting headaches. Why is it there, and what can I do about it?

My guess is that it’s pulling the initial HTML from the post, which includes that tag.

Thanks,

-A

Edit: solved. See below. Answer was in the docs.

---

<div class="post-metadata">

**Author:** ![ljad82](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@ljad82](https://zola.discourse.group/u/ljad82)\
**Post date:** [January 10, 2021, 6:52am UTC](https://zola.discourse.group/t/post-summary-includes-p-tag-intentional-or-bug/745/2 "2021-01-10T06:52:05Z")

</div>

I found the answer.

[https://www.getzola.org/documentation/templates/overview/](https://www.getzola.org/documentation/templates/overview/)

`{{ post.summary | markdown(inline=true) | safe }}`

solves it.
