tomzx / blog.tomrochette.com

My blog.
http://www.tomrochette.com
MIT License
2 stars 0 forks source link

Remove any HTML when generating the table of contents #63

Closed tomzx closed 7 years ago

tomzx commented 7 years ago

When a h1-h6 header contains a link, the table of contents plugin does not strip it out, and thus generates links that are invalid, such as Current version - v0.2.0">Current version - v0.2.0 which should simply read Current version - v0.2.0.

tomzx commented 7 years ago

This was caused by the fact that the TOC text property was in fact the full anchor and not simply a text.