Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[ BUG ] ":" symbol generates unnecessary hyphen

Aperta
#107 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
markdown, shell

Direzione di ricerca

Start by tracing the heading-to-anchor generation used by the online tool for the reproduced Markdown headings. Compare the generated anchors with the expected single-hyphen output for headings containing a colon, then verify both examples and confirm that unrelated heading conversion still works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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/

Lingua principale
Shell
Stelle
3.3k
Fork
2.7k
Merge medio
7m
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ekalinin/github-markdown-toc

Tutte le issue di ekalinin/github-markdown-toc

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.