ghiculescu/jekyll-table-of-contents — pull request #7 by antoine-richard (2014-11-28 15:46:50+00:00)
Title: fix an issue occurring when the previous sibling has no name.

Hi,

I'm running into an issue when the previous sibling has no name attribute. The replace is applied on an undefined object and crashes.

Here is a fix. I'm simply testing the presence of a name attribute.