Brian Woodward

Results 268 comments of Brian Woodward

A PR would be great! There are already options available for specifying the [regex used and the open and close](https://github.com/jonschlinkert/markdown-toc/blob/master/lib/insert.js#L21-L23) tags. But [modifications are necessary](https://github.com/jonschlinkert/markdown-toc/blob/master/index.js#L64) to work with completely custom...

`insert` is used in the [cli](https://github.com/jonschlinkert/markdown-toc/blob/master/cli.js#L59), but most of the time, it's just using the default from [here](https://github.com/jonschlinkert/markdown-toc/blob/master/lib/insert.js#L21)

@trusktr thank you for the issue and the example. Will you also include the source `README.md` to help determine where the bug is occurring?

You can use the [slugify](https://github.com/jonschlinkert/markdown-toc#optionsslugify) option to remove the `[ ]` from the headings.

@koppor all of the command line arguments are passed as options now. `slugify` takes a function which cannot be passed via the command line, but you can pass `false`. Try...

@flamusdiu thanks for the PR! I agree that we should wait on `querystring-es3` to be published to npm.

Hi @zainimran Have you tried the [bullets](https://github.com/jonschlinkert/markdown-toc#optionsbullets) options? You can try setting that to `'1.'`.

Markdown will do that automatically if all of the numbers are `1.`. Edit: technically... a markdown renderer will create an ordered html list which will add the numbers.

_Examples generating the TOC for a "README.md" file_ ### CLI ```bash $ markdown-toc README.md --bullets "1." ``` ### API ```js const toc = require('markdown-toc'); toc('# One\n\n## One A\n\n## One B\n\n#...

@zainimran I think to get those results you'll have to set the option `nobullet: true` so one isn't rendered, then use a custom `linkify` option. [This comment](https://github.com/jonschlinkert/markdown-toc/issues/106#issuecomment-347615148) has an example....