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

@atjson/renderer-commonmark

Package Overview
Dependencies
Maintainers
2
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atjson/renderer-commonmark - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

2

package.json
{
"name": "@atjson/renderer-commonmark",
"version": "0.6.1",
"version": "0.6.2",
"description": "A brand new TypeScript library.",

@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js",

@@ -49,9 +49,12 @@ import { HIRNode } from '@atjson/hir';

let lines: string[] = text.join('').split('\n');
let endOfQuote: number = lines.length;
let endOfQuote = lines.length;
let startOfQuote = 0;
while (lines[endOfQuote - 1] === '') {
endOfQuote--;
}
while (lines[startOfQuote].match(/^(\s)*$/)) startOfQuote++;
while (lines[endOfQuote - 1].match(/^(\s)*$/)) endOfQuote--;
return lines.slice(0, endOfQuote).map(line => `> ${line}`).concat(lines.slice(endOfQuote)).join('\n');
return [
...lines.slice(startOfQuote, endOfQuote).map(line => `> ${line}`),
'\n'
].join('\n');
},

@@ -107,4 +110,4 @@

*'link'(props: { href: string }): IterableIterator<string> {
let text = yield;
return `[${text.join('')}](${props.href})`;
let [before, text, after] = yield* split();
return `${before}[${text}](${props.href})${after}`;
},

@@ -111,0 +114,0 @@

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