Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[ BUG ] Insert does not work on MacOS 10.15.7 zsh

Open
#119 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, shell, zsh

Research direction

Start at the gh-md-toc --insert entry point and reproduce the command against Readme.md on macOS 10.15.7 with zsh. Compare the failing grep -Fxq check with the working grep -F form; done means the insert command recognizes the existing and markers.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
When running gh-md-toc --insert ./Readme.md i get

You don't have <!--ts--> or <!--te--> in your file...exiting

It seems this comes down to this command not working

kyle@Emilys-MacBook-Pro kubectl-opslevel % grep -Fxq "<\!--ts-->" Readme.md

but this one does

kyle@Emilys-MacBook-Pro kubectl-opslevel % grep -F "<\!--ts-->" Readme.md
<!--ts-->

Notice the arguments to grep. I'm using zsh (the macos native shell now - not sure if that has an impact)

Dominant language
Shell
Stars
3.3k
Forks
2.7k
Avg merge
7m
Merged PRs (30d)
3

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ekalinin/github-markdown-toc

All issues in ekalinin/github-markdown-toc

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.