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

when I import toc in jsx like: ~~~ js import toc from "markdown-toc"; ~~~ there are errors in console: ~~~ shell ERROR in ./node_modules/markdown-toc/index.js 10:18-40 Module not found: Error: Can't...

Thanks for this cool lib! I'm trying to use this lib in a frontend project using vite, when I build my project with esbuild I got the following error: ```...

I think it should be `include-first-h1` or exclude based on requirements. But the current name is misleading.

I'm missing something. How do you add the anchor ids to the headings in the output html?

See repro: ```console $ tail tmp.md --- title: Foo --- $ markdown-toc -i tmp.md $ tail tmp.md --- title: Foo --- ```

When attempting to retrieve the currently installed version of markdown-toc, I receive an error message: ``` % markdown-toc --version Usage: markdown-toc [options] input: The Markdown file to parse for table...

Fixes #156 Overrides the version of autolinker used to fix a vulnerability. I understand this solution may seem hacky, but npm's docs suggest overrides for fixing security issues. - https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides...

This pull request adds a `Dockerfile` to allow creating a docker images starting from the NPM package. A potential enhancement would be to use GitHub Actions (triggered by the tagging)...

تعديل لإضافة مميزات واصلاحات

- upgrades `remarkable` to the latest version, which removes some problematic dependencies causing CVE's to be flagged by automated scanners - bumps the minimum nodejs version accordingly - aims to...