# Why the titles of markdown display in the content?

**URL:** <https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080>\
**Category:** Uncategorized\
**Created:** [October 17, 2017, 3:49pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080 "2017-10-17T15:49:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebigyellobee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/thebigyellobee/32/533_2.png) [@thebigyellobee](https://talk.jekyllrb.com/u/thebigyellobee)\
**Post date:** [October 17, 2017, 3:49pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/1 "2017-10-17T15:49:15Z")

</div>

Like this:

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/a0724a66675788ee57ecb434bd5e897c96178ad7.png)

When I load the Jekyll project using Github pages?

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 17, 2017, 4:00pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/2 "2017-10-17T16:00:43Z")

</div>

I think you are referring to the table of contents?

Do you have `{:toc}` in there somewhere? I think that is what tells it to make the table of contents.

---

<div class="post-metadata">

**Author:** ![thebigyellobee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/thebigyellobee/32/533_2.png) [@thebigyellobee](https://talk.jekyllrb.com/u/thebigyellobee)\
**Post date:** [October 17, 2017, 4:11pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/3 "2017-10-17T16:11:40Z")

</div>

I have {:toc} like this:

```markdown
---
layout: post
title: "xxxx"
data: 2017-05-09 19:27:00 +0800
categories: xxx
tag: Jekyll
---
* content
{:toc}

xxxxx

```

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [October 17, 2017, 4:58pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/4 "2017-10-17T16:58:38Z")

</div>

not sure I understand - do you want the toc? that is what is putting the list at the top I think. If you don’t want that remove the toc part.

---

<div class="post-metadata">

**Author:** ![thebigyellobee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/thebigyellobee/32/533_2.png) [@thebigyellobee](https://talk.jekyllrb.com/u/thebigyellobee)\
**Post date:** [October 18, 2017, 5:32am UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/5 "2017-10-18T05:32:25Z")

</div>

I understand what you mean. Thanks

---

<div class="post-metadata">

**Author:** ![lsrdg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lsrdg/32/431_2.png) [@lsrdg](https://talk.jekyllrb.com/u/lsrdg)\
**Post date:** [October 19, 2017, 5:25am UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/6 "2017-10-19T05:25:19Z")

</div>

What?! Is `{:toc} a thing? Since when? 😮

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [October 19, 2017, 12:38pm UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/7 "2017-10-19T12:38:35Z")

</div>

It’s been a thing for a long time. It’s part of Kramdown… which Jekyll uses to convert your Markdown into HTML.

[https://kramdown.gettalong.org/converter/html.html#toc](https://kramdown.gettalong.org/converter/html.html#toc)

---

<div class="post-metadata">

**Author:** ![lsrdg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lsrdg/32/431_2.png) [@lsrdg](https://talk.jekyllrb.com/u/lsrdg)\
**Post date:** [October 23, 2017, 10:19am UTC](https://talk.jekyllrb.com/t/why-the-titles-of-markdown-display-in-the-content/1080/8 "2017-10-23T10:19:10Z")

</div>

Thanks, @mmistakes! I’ve been using a gist that I’m pretty sure it was you who shared in the old forum. 😛
