Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@technote-space/doctoc

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@technote-space/doctoc - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

build/lib/transform.js

@@ -44,3 +44,3 @@ "use strict";

const shouldEscape = (header) => /^#+\s+/.test(header.raw) && !/\s+#+$/.test(header.raw) && header.children.length === 1 && header.children[0].type === md.Syntax.Str;
const escapeHeader = (header) => md.parse(header.raw.replace(/^#+\s+/, '').replace('#', '#').replace('#', '#').replace(']', ']').replace('[', '['));
const escapeHeader = (header) => md.parse(header.raw.replace(/^#+\s+/, '').replace('#', '#').replace('#', '#').replace(']', ']').replace('[', '[').trim());
exports.getMarkdownHeaders = (lines, maxHeaderLevel) => {

@@ -47,0 +47,0 @@ const extractText = (header) => {

{
"name": "@technote-space/doctoc",
"version": "2.1.2",
"version": "2.1.3",
"description": "Generates TOC for markdown files of local git repo.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc