Brian Woodward

Results 268 comments of Brian Woodward

@maxime1992 thanks for the issue. I'll try to reproduce this when I have a chance.

I looked into this some and the reason the front-matter is being re-formatted is because `markdown-toc` uses `gray-matter` to parse out the front-matter before generating the TOC. When the `-i`...

try changing this line: ```js var toc_md = toc.bullets(correct_toc); ``` to: ```js var toc_md = toc.bullets(correct_toc, {highest: result.highest}); ``` What might be easier is to pass a [custom `linkify` function](https://github.com/jonschlinkert/markdown-toc/blob/master/index.js#L191-L194)...

Thanks for the issue! I think I see how this can be fixed. We need to either get the title ('getTitle') or `slugify` without the `num` option first, then check...

Thanks @smaslennikov I'll try to address the PRs this weekend and get a new version published.

Thanks @PrimordialHelios I'll try to review this today.

@PrimordialHelios thanks for the PR. Will you add some tests to [this section](https://github.com/jonschlinkert/markdown-toc/blob/master/test/test.js#L392-L429) for testing the `.insert` method? Also, I think some changes will be necessary [here](https://github.com/jonschlinkert/markdown-toc/blob/master/index.js#L64) to ensure the...

> I've never written unit tests before These are great! I think it looks good. I'll try to get this merged in soon.

Thanks @shanehughes3 but now I remember why I didn't build the readme when I merged your other PR. There's an issue with the toc being injected into the docs [here](https://github.com/jonschlinkert/markdown-toc/pull/116/files#diff-04c6e90faac2675aa89e2176d2eec7d8R56)....

Thanks, we'll get the readme updated. If you install it globally, then you can use `markdown-toc` from any directory: ```sh npm install --global markdown-toc ```