ekalinin / github-markdown-toc

Easy TOC creation for GitHub README.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ BUG ] ":" symbol generates unnecessary hyphen

MrR0807 opened this issue · comments

Describe the bug
The online tool doesn't work with headers like this: "# Chapter 1: Introducing to something". Symbol : is replaced with hyphen, but it should be removed altogether as per explanation.

To Reproduce

# Chapter 1: Introducing
# Chapter 2: The Foundations

Generates:

- [Chapter 1: Introducing](#chapter-1--introducing)
- [Chapter 2: The Foundations](#chapter-2--the-foundations)

Expected behavior
No double hyphen between 1-introducing

- [Chapter 1: Introducing](#chapter-1-introducing)
- [Chapter 2: The Foundations](#chapter-2-the-foundations)

Environment (please complete the following information):
Online tool: https://ecotrust-canada.github.io/markdown-toc/