New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

summarize-markdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

summarize-markdown - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

5

index.js
"use strict";
var ent = require('ent');
var marked = require('marked');

@@ -8,2 +9,3 @@ var renderer = new marked.Renderer();

renderer.blockquote = function(quote) {
quote = ent.decode(quote);
return '"' + quote.trim() + '" ';

@@ -13,2 +15,3 @@ };

renderer.heading = function(text, level) {
text = ent.decode(text);
return text + ': ';

@@ -21,2 +24,3 @@ };

renderer.listitem = function(text) {
text = ent.decode(text);
if (/\.\s*$/.test(text)) {

@@ -31,2 +35,3 @@ return text;

renderer.paragraph = function(text) {
text = ent.decode(text);
return text + ' ';

@@ -33,0 +38,0 @@ };

3

package.json
{
"name": "summarize-markdown",
"version": "0.2.0",
"version": "0.2.1",
"description": "Summarize markdown into a simple text string",

@@ -24,2 +24,3 @@ "author": {

"dependencies": {
"ent": "~0.1.0",
"marked": "~0.3"

@@ -26,0 +27,0 @@ },

@@ -5,2 +5,4 @@ # Markdown Summarizer

[![Build Status](https://travis-ci.org/bryanburgers/summarize-markdown.png?branch=master)](https://travis-ci.org/bryanburgers/summarize-markdown)
## Why?

@@ -7,0 +9,0 @@

@@ -62,2 +62,7 @@ var assert = require('assert');

});
it('doesn\'t make entities of quotes', function() {
t('It\'s complicated.', 'It\'s complicated.');
t('**It\'s** complicated.', 'It\'s complicated.');
});
});

Sorry, the diff of this file is not supported yet

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