Skip to content

Commit

Permalink
Add toc in markdown article
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed May 19, 2022
1 parent 46bea23 commit 4ab54ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 195 deletions.
190 changes: 0 additions & 190 deletions _posts/2013-12-12-Generate-a-table-of-content.md

This file was deleted.

26 changes: 21 additions & 5 deletions _posts/2014-11-28-markdown-and-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,32 @@ author: rohanchandra

Jekyll supports the use of [Markdown](http://daringfireball.net/projects/markdown/syntax) with inline HTML tags which makes it easier to quickly write posts with Jekyll, without having to worry too much about text formatting. A sample of the formatting follows.

## Table of content

<!-- To be placed at the beginning of the post, it is where the table of content will be generated -->
* TOC
{:toc}
*
You need to put this at the beginning of the page where you want the table of content to be displayed

```html
* TOC
{:toc}
```

It will then render the markdown and html titles (lines that begins with `#` or using the `<h1></h1>` tages)


## Title

### Sub title
### Subtitle

Tables have also been extended from Markdown:

First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
| First Header | Second Header |
|--------------|---------------|
| Content Cell | Content Cell |
| Content Cell | Content Cell |

Here's an example of an image, which is included using Markdown:

Expand Down

0 comments on commit 4ab54ef

Please sign in to comment.