You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
7
+
8
+
Usage:
9
+
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
10
+
11
+
Parameters:
12
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
13
+
14
+
Optional Parameters:
15
+
* sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
16
+
* class (string) : '' - a CSS class assigned to the TOC
17
+
* id (string) : '' - an ID to assigned to the TOC
18
+
* h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
19
+
* h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
20
+
* ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
21
+
* item_class (string) : '' - add custom class for each list item; has support for '%level%' placeholder, which is the current heading level
22
+
23
+
Output:
24
+
An ordered or unordered list representing the table of contents of a markdown block. This snippet will only generate the table of contents and will NOT output the markdown given to it
0 commit comments