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,...
Hi, I've used `markdown-toc README.md --no-firsth1` to render the list for https://github.com/semantalytics/awesome-semantic-web In there we have a H3 header `### C#` [direct link](https://github.com/semantalytics/awesome-semantic-web#c-1) The link to to this section was...
Maybe 'in-place' easier to grok than 'directly' in description of -i.
```sh markdown-toc --bullets "-" README.md ``` causes this error: https://github.com/jonschlinkert/markdown-toc/blob/4ba79a2948f2a2ca472a103916a0530e6acb26f9/cli.js#L17 ```sh markdown-toc --bullets "*" README.md ``` works perfectly well
Hi, I am very interesting in your package and I am a beginner in web technology. And of what I understand, we must use your module with nodejs framework. However,...
I discovered in my repo https://github.com/vscodeshift/material-ui-snippets that HTML entities like `>` get stripped out of slugs. Right now in this and other libs, `<div>` gets converted to `ltdivgt`, but the...
On using named links generated TOC is broken. # Source #### Example [`repos.yaml`][] file ``` #### Example [`repos.yaml`][] file [`repos.yaml`]: #optodoocustomsrcreposyaml ``` [`repos.yaml`]: #optodoocustomsrcreposyaml # Output * [Example [`repos.yaml`][] file](#example-reposyaml-file)...
```js toc("# [full](link)\n\n # Link [inside](header)").content; // Results in: // - [full](#full) // - [Link [inside](header)](#link-insideheader) ``` So it's correctly `titleize`ing the first case where the full header consists of...
In regards to issue - https://github.com/jonschlinkert/markdown-toc/issues/156
The dependency Remarkable has been updated to use autolinker v3.0.0+ as there was a DOS vulnerability in autolinker v0.28.1 (https://snyk.io/vuln/SNYK-JS-AUTOLINKER-73494). Updating Remarkable to v2.0.0+ will resolve the issue. Old -...
I've just added markdown-toc as a package to arch linux and wanted to share this