Remove findRE TOC example

Closes rdwatters/hugo-docs-concept#47
Fixes gohugoio/hugo#3188
This commit is contained in:
Ryan Watters 2017-03-27 09:50:53 -05:00
parent 047e039baf
commit e6511dff2b

View File

@ -33,7 +33,8 @@ You can limit the number of matches in the list with a third parameter. The foll
<!-- returns ["<h2 id="#foo">Foo</h2>"] -->
```
## `findRE` Example: Building a Table of Contents
<!-- Removed per request of @bep -->
<!-- ## `findRE` Example: Building a Table of Contents
`findRE` allows us to build an automatically generated table of contents that could be used for a simple scrollspy if you don't want to use [Hugo's native .TableOfContents feature][toc]. The following shows how this could be done in a [partial template][partials]:
@ -54,7 +55,7 @@ You can limit the number of matches in the list with a third parameter. The foll
```
{{% /code %}}
The preceding snippet tries to find all second-level headers and generate a list where at least one header is found. [`plainify`][] strips the HTML and [`urlize`][] converts the header into a valid URL.
The preceding snippet tries to find all second-level headers and generate a list where at least one header is found. [`plainify`][] strips the HTML and [`urlize`][] converts the header into a valid URL. -->
[partials]: /templates/partials/
[`plainify`]: /functions/plainify/