Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

toc adds extra newlines each time it is run #4

Open
RichardBradley opened this issue Nov 12, 2015 · 2 comments
Open

toc adds extra newlines each time it is run #4

RichardBradley opened this issue Nov 12, 2015 · 2 comments

Comments

@RichardBradley
Copy link

I have found that toc adds extra newlines to my README each time it is run.
This means that I can't add it as a build step.

I think that running toc multiple times on the same file should not result in any changes, i.e. it should be idempotent.

Repro at https://gist.github.com/RichardBradley/a72c644e0e09eb501f1f

(Incorrectly raised at jonschlinkert/markdown-toc#34 )

@jonschlinkert
Copy link
Owner

have you tried using markdown-toc instead? this lib was deprecated a while back and is unlikely to be updated

@RichardBradley
Copy link
Author

have you tried using markdown-toc instead

I tried, but I couldn't get markdown-toc to edit my README inline from the cli, it will only print out the new toc markup, which is no use to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants