Socket
Socket
Sign inDemoInstall

markdown-toc

Package Overview
Dependencies
34
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.0 to 0.10.0

2

lib/insert.js

@@ -41,3 +41,3 @@ 'use strict';

if (sections.length === 3) {
sections.splice(1, 1, open + toc(last, options).content);
sections.splice(1, 1, open + (options.toc || toc(last, options).content));
sections.splice(2, 0, close);

@@ -44,0 +44,0 @@ }

{
"name": "markdown-toc",
"description": "Generate a markdown TOC (table of contents) with Remarkable.",
"version": "0.9.0",
"version": "0.10.0",
"homepage": "https://github.com/jonschlinkert/markdown-toc",

@@ -66,2 +66,2 @@ "author": {

]
}
}

@@ -11,3 +11,2 @@ # markdown-toc [![NPM version](https://badge.fury.io/js/markdown-toc.svg)](http://badge.fury.io/js/markdown-toc) [![Build Status](https://travis-ci.org/jonschlinkert/markdown-toc.svg)](https://travis-ci.org/jonschlinkert/markdown-toc)

## Install with [npm](npmjs.org)

@@ -20,5 +19,6 @@

## Related projects
* [remarkable](https://github.com/jonschlinkert/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.
* [markdown-utils](https://github.com/jonschlinkert/markdown-utils): Micro-utils for creating markdown snippets.
* [markdown-link](https://github.com/jonschlinkert/markdown-link): Micro util for generating a single markdown link.
* [gfm-code-blocks](https://github.com/jonschlinkert/gfm-code-blocks): Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.

@@ -61,4 +61,8 @@ ## Usage

Insert a table of contents immediately after an _opening_ `<!-- toc -->` code comment, or replace an existing TOC if both an _opening_ comment and a _closing_ comment (`<!-- tocstop -->`) are found.
Insert a table of contents immediately after an _opening_ `
` code comment, or replace an existing TOC if both an _opening_ comment and a _closing_ comment (`
`) are found.
_(This strategy works well since code comments in markdown are hidden when viewed as HTML, like when viewing a README on GitHub README for example)._

@@ -69,7 +73,6 @@

```markdown
<!-- toc -->
- old toc 1
- old toc 2
- old toc 3
<!-- tocstop -->

@@ -86,6 +89,5 @@ ## abc

```markdown
<!-- toc -->
- [abc](#abc)
- [xyz](#xyz)
<!-- tocstop -->

@@ -193,4 +195,2 @@ ## abc

## Contributing

@@ -206,3 +206,2 @@ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/markdown-toc/issues)

## License

@@ -214,2 +213,2 @@ Copyright (c) 2014-2015 Jon Schlinkert

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 14, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 21, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc