markdown-toc icon indicating copy to clipboard operation
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,...

Results 91 markdown-toc issues
Sort by recently updated
recently updated
newest added

I have a markdown file which contain <pre> tag. The content of <pre> is another markdown string. The bug is fired at this situation.

Generate TOC with the option `firsth1:false` outputs undefined. Btw, I would also suggest to use a more meaningful name like `skipFirstHeadline`

bug

I just removed those table of contents from the CLI usage section.

Thanks to some amazing sponsors like [@ImZeus_XYZ](https://twitter.com/ImZeus_XYZ) I'm able to start spending more time with open source again. Drop a comment below if you want to help get this project...

To be honest I'm not a JavaScript guy but I think that I may have fixed the problem seen in #42, #131 and #168. The actual output of "undefined" was...

The previous format would incorrectly capture: - A single horizontal rule at the top of the file - Three literal dashes with arbitrary content after them. This was detected as...

Tried: ``` "scripts": { "toc": "markdown-toc -i readme.md" } ``` and `npm run toc` ... it seems like it does nothing...

## Bug If a document with `---` at the top is provided, an extra `---` will be written to the document because the leading `---` is detected as a frontmatter....