Skip to content

Instantly share code, notes, and snippets.

@RichardBradley
Created November 3, 2015 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardBradley/a72c644e0e09eb501f1f to your computer and use it in GitHub Desktop.
Save RichardBradley/a72c644e0e09eb501f1f to your computer and use it in GitHub Desktop.
markdown-toc-idempotent

markdown-toc idempotent test

This is an example readme

Repro Steps

Run:

npm i marked-toc
./node_modules/.bin/toc
git add README.md && git commit -m 'update toc'

Then, without making any changes to README, run:

./node_modules/.bin/toc
git status

Expected output

git should show no changes

Observed output:

Extra blank lines have been added to README by markdown-toc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment