markdown-toc
markdown-toc copied to clipboard
API and CLI for generating a markdown TOC (table of contents) for a README or any markdown files. Uses Remarkable to parse markdown. Used by NASA/openmct, Prisma, Joi, Mocha, Sass, Prettier, Orbit DB,...
`underscore.string` has a "Regular Expression Denial of Service" vulnerability that is patched in `>= 3.3.5`  Looks like this needs to wait on: https://github.com/jonschlinkert/remarkable/pull/312
When running `markdown-toc -i` on a file, the tool makes unexpected edits outside the `` section. **Steps to reproduce:** 1. ``` wget https://raw.githubusercontent.com/kubernetes/enhancements/fa8da20499361c9e7849b50031aa030012a1612d/keps/0000-kep-template.md ``` 2. ``` sed -i -e '22...
In README.md ``` ### New _feature_ ``` generated TOC ``` - [New _feature_](#new-_feature_) ``` Actual link revealed by pointing the heading in GitHub `https://github.com/dotchev/Spoon-Knife#new-feature` Notice that GitHub strips the underscores...
I have [vim-plugin](https://github.com/mgor/vim-markdown-grip) that uses `markdown-toc` to generate table of contents that I have been using for markdown files in github projects. Now however, I'm working on a project that...
That was fast, unexpected, and very angry. Seeing as I use Bitbucket and Gitlab over Github, I'm not dead, and have quite a bit of activity. Interesting that you would...
**Steps to reproduce:** `markdown-toc -i README.md` - produce 0 input, readme file doesn't change. I thought it syntax issue, tried: `markdown-toc -i README.md README.md` - return help message. **Expected result:**...
https://github.com/jonschlinkert/markdown-toc/blob/master/cli.js#L41 didn't make it in 1.2.0 and would be ultra useful. Among with all the open PRs.
Currently a typical TOC looks like this: ``` - [Was ist Markdown?](#was-ist-markdown) - [Lokale Vorschau im Browser](#lokale-vorschau-im-browser) * [Installieren](#installieren) * [Verwenden](#verwenden) * [So sieht es aus](#so-sieht-es-aus) - [Inhaltsverzeichnis mit markdown-doc](#inhaltsverzeichnis-mit-markdown-doc)...
``` > mocha plugin √ should work as a remarkable plugin (110ms) options: custom functions: √ should allow a custom `strip` function to strip words from heading text: √ should...
I'd like to use this tool with Bitbucket, but Bitbucket automatically escapes the `` and `` tags. I wrote a quick and dirty npm package called [markdown-bucketoc](https://www.npmjs.com/package/markdown-bucketoc) that uses pure...