Why the titles of markdown display in the content?

Like this:

When I load the Jekyll project using Github pages?

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.

I have {:toc} like this:

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

xxxxx

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.

I understand what you mean. Thanks

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

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

1 Like

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