Skip to content

Commit

Permalink
Remove findRE TOC example
Browse files Browse the repository at this point in the history
  • Loading branch information
rdwatters committed Mar 27, 2017
1 parent 047e039 commit e6511df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/functions/findRe.md
Expand Up @@ -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]:
Expand All @@ -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/
Expand Down

0 comments on commit e6511df

Please sign in to comment.