diff --git a/_includes/toc.html b/_includes/toc.html index 78f92cc4..27023f71 100644 --- a/_includes/toc.html +++ b/_includes/toc.html @@ -1,5 +1,7 @@ {% capture tocWorkspace %} {%- comment -%} + Version 1.0.2 + "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe Usage: @@ -44,10 +46,11 @@ {% assign indentAmount = headerLevel | minus: minHeader | add: 1 %} {% assign _workspace = node | split: '{% endcapture %} + {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %} {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %} {% assign space = '' %} @@ -69,5 +72,4 @@ {% capture my_toc %}{: #{{ include.id }}} {{ my_toc | lstrip }}{% endcapture %} {% endif %} -{% endcapture %}{% assign tocWorkspace = '' %} -{{ my_toc | markdownify }} \ No newline at end of file +{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }} \ No newline at end of file diff --git a/docs/_includes/toc.html b/docs/_includes/toc.html index 78f92cc4..27023f71 100644 --- a/docs/_includes/toc.html +++ b/docs/_includes/toc.html @@ -1,5 +1,7 @@ {% capture tocWorkspace %} {%- comment -%} + Version 1.0.2 + "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe Usage: @@ -44,10 +46,11 @@ {% assign indentAmount = headerLevel | minus: minHeader | add: 1 %} {% assign _workspace = node | split: '{% endcapture %} + {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %} {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %} {% assign space = '' %} @@ -69,5 +72,4 @@ {% capture my_toc %}{: #{{ include.id }}} {{ my_toc | lstrip }}{% endcapture %} {% endif %} -{% endcapture %}{% assign tocWorkspace = '' %} -{{ my_toc | markdownify }} \ No newline at end of file +{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }} \ No newline at end of file