-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect parsing when headings have attributes
Closes #4
- Loading branch information
Showing
5 changed files
with
71 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
# See https://github.com/allejo/jekyll-toc/issues/4 | ||
--- | ||
|
||
{% capture markdown %} | ||
# Miscellaneous features | ||
{: .hide-from-excerpt} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li><a href="#miscellaneous-features">Miscellaneous features</a></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,16 @@ | ||
--- | ||
--- | ||
|
||
{% capture markdown %} | ||
# Miscellaneous **features** | ||
{: #custom-heading} | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li><a href="#custom-heading">Miscellaneous <strong>features</strong></a></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,16 @@ | ||
--- | ||
--- | ||
|
||
{% capture markdown %} | ||
# Miscellaneous **features** | ||
{: #custom-heading} | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text sanitize=true %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li><a href="#custom-heading">Miscellaneous features</a></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,16 @@ | ||
--- | ||
--- | ||
|
||
{% capture markdown %} | ||
# Miscellaneous features | ||
{: #custom-heading} | ||
{% endcapture %} | ||
{% assign text = markdown | markdownify %} | ||
|
||
{% include toc.html html=text %} | ||
|
||
<!-- /// --> | ||
|
||
<ul> | ||
<li><a href="#custom-heading">Miscellaneous features</a></li> | ||
</ul> |