# Live post shows "\<!--kg-card-begin: markdown--\>"; Ghost post does not

**URL:** <https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062>\
**Category:** Developer help\
**Created:** [March 6, 2019, 8:27am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062 "2019-03-06T08:27:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 8:27am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/1 "2019-03-06T08:27:10Z")

</div>

When I publish my post, markdown leaves the `&lt;!--kg-card-begin: markdown--&gt;` bit in the live version, but it isn’t visible in the ghost admin side… Any ideas why, and what I can do?  
 ![22](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/b59e59befcd6e2f76d3309afc6b529db06713bf3.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [March 6, 2019, 8:33am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/2 "2019-03-06T08:33:15Z")

</div>

@Jomiro_Eming are you able to share a URL where you are seeing this? Which theme are you using?

HTML comments are added around all cards as of 2.16.0 but they should not be displayed anywhere.

---

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 8:35am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/3 "2019-03-06T08:35:46Z")

</div>

> **[The OfferZen Community Blog](https://www.offerzen.com/blog)**
>
> Get data and insights from developers and tech employers on what it takes to be on, or grow, a thriving tech team.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [March 6, 2019, 8:42am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/4 "2019-03-06T08:42:29Z")

</div>

@Jomiro_Eming it doesn’t look like you’re using a typical Ghost theme setup, how are you pulling the content into your site? If you are using a Ghost theme are you able to share the part of your template that is outputting the content portion of posts?

---

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 8:46am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/5 "2019-03-06T08:46:07Z")

</div>

![30](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/f30c426f31f0fb2515a80d0e73f6c1562d19e5c7.png)

---

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 8:46am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/6 "2019-03-06T08:46:52Z")

</div>

![40](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/832cdf99a2c3786b435d1e1ec9ca49c8579549fa.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [March 6, 2019, 8:47am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/7 "2019-03-06T08:47:58Z")

</div>

@Jomiro_Eming that’s not what I meant 🙂 The content in the editor isn’t relevant here. Can you show your post.hbs template file or describe how your site is pulling content from Ghost if you’re not using a standard theme?

---

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 8:52am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/8 "2019-03-06T08:52:46Z")

</div>

We’re pulling it down from the API. I guess the main question would be “why this post”, and not all the others that we fetch and parse in the same way

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [March 6, 2019, 8:58am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/9 "2019-03-06T08:58:05Z")

</div>

@Jomiro_Eming the HTML comments are only added to newly created or re-saved posts which is why you’re only seeing it for this post.

Can you check your API response for that post to see if you’re seeing `&lt;` rather than `<` for the comments in the `html` field? If not then that points to a bug in your parsing/rendering step that’s incorrectly sanitising HTML comments and making them visible.

---

<div class="post-metadata">

**Author:** ![Jomiro\_Eming](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jomiro\_Eming](https://forum.ghost.org/u/Jomiro_Eming)\
**Post date:** [March 6, 2019, 9:17am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/10 "2019-03-06T09:17:33Z")

</div>

Thanks, that helps!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [March 20, 2019, 9:28am UTC](https://forum.ghost.org/t/live-post-shows-kg-card-begin-markdown-ghost-post-does-not/6062/11 "2019-03-20T09:28:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
