allejo / jekyll-anchor-headings

A GitHub Pages compatible way of adding anchors to your headings without a plug-in or JavaScript :octocat:
https://pure-liquid.allejo.org/
MIT License
186 stars 31 forks source link

Does not process content before first heading #3

Closed plaindocs closed 6 years ago

plaindocs commented 6 years ago

My Markdown

---
title: Getting started
layout: en

---

This is a very short guide to using Travis CI with your GitHub hosted code repository.
If you're new to continuous integration or would like some more information on
what Travis CI does, start with [Core Concepts for Beginners](/user/for-beginners)
instead.

## Prerequisites

To start using Travis CI, make sure you have *all* of the following:

Snippet Usage

{% include toc.html h_min=2 h_max=2 class="list-language" santize=true  html=content %}

Expected HTML

This is a very short guide to using Travis CI with your GitHub hosted code repository. If you’re new to continuous integration or would like some more information on what Travis CI does, start with Core Concepts for Beginners instead.

Prerequisites

To start using Travis CI, make sure you have all of the following:

Actual HTML

Prerequisites

To start using Travis CI, make sure you have all of the following:

Notes

Write here.

allejo commented 6 years ago

Oof this was a bad one. I added a unit test for this situation. Mind giving this another go?

plaindocs commented 6 years ago

Thanks for the quick fix. Testing in the linked PR.

allejo commented 6 years ago

Glad it worked and thanks for the bug report 😄