-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from allejo/feature/submenu-classes
- Loading branch information
Showing
5 changed files
with
153 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
# https://github.com/allejo/jekyll-toc/issues/40 | ||
--- | ||
|
||
{% capture markdown %} | ||
# Heading 1 | ||
|
||
## Heading 2.1 | ||
|
||
### Heading 3.1 | ||
|
||
### Heading 3.2 | ||
|
||
## Heading 2.2 | ||
|
||
### Heading 3.3 | ||
|
||
### Heading 3.4 | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text submenu_class="submenu-%level%" %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li> | ||
<a href="#heading-1">Heading 1</a> | ||
<ul class="submenu-1"> | ||
<li> | ||
<a href="#heading-21">Heading 2.1</a> | ||
<ul class="submenu-2"> | ||
<li><a href="#heading-31">Heading 3.1</a></li> | ||
<li><a href="#heading-32">Heading 3.2</a></li> | ||
</ul> | ||
</li> | ||
<li> | ||
<a href="#heading-22">Heading 2.2</a> | ||
<ul class="submenu-2"> | ||
<li><a href="#heading-33">Heading 3.3</a></li> | ||
<li><a href="#heading-34">Heading 3.4</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# https://github.com/allejo/jekyll-toc/issues/40 | ||
--- | ||
|
||
{% capture markdown %} | ||
# Heading 1 | ||
|
||
## Heading 2.1 | ||
|
||
<h3>Heading 3.1</h3> | ||
|
||
<h3>Heading 3.2</h3> | ||
|
||
## Heading 2.2 | ||
|
||
### Heading 3.3 | ||
|
||
### Heading 3.4 | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text skipNoIDs=true submenu_class="submenu-%level%" %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li> | ||
<a href="#heading-1">Heading 1</a> | ||
<ul class="submenu-1"> | ||
<li> | ||
<a href="#heading-21">Heading 2.1</a> | ||
</li> | ||
<li> | ||
<a href="#heading-22">Heading 2.2</a> | ||
<ul class="submenu-2"> | ||
<li><a href="#heading-33">Heading 3.3</a></li> | ||
<li><a href="#heading-34">Heading 3.4</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> |