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

gitbook-markdown

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-markdown - npm Package Compare versions

Comparing version 0.4.5 to 0.5.0

5

lib/page.js

@@ -59,3 +59,6 @@ var _ = require('lodash');

var options = _.extend({}, kramed.defaults, {
mathjax: false
mathjax: false,
renderer: new kramed.Renderer({
headerAutoId: false
})
});

@@ -62,0 +65,0 @@

4

package.json
{
"name": "gitbook-markdown",
"version": "0.4.5",
"version": "0.5.0",
"homepage": "https://www.gitbook.com",

@@ -9,3 +9,3 @@ "description": "Parse markdown content for gitbook",

"lodash": "^3.2.0",
"kramed": "0.5.1",
"kramed": "0.5.3",
"kramed-text-renderer": "0.2.1"

@@ -12,0 +12,0 @@ },

@@ -23,2 +23,7 @@ var fs = require('fs');

it('should not add id to headings', function() {
assert.equal(page('# Hello').sections[0].content, '<h1>Hello</h1>\n');
assert.equal(page('# Hello {#test}').sections[0].content, '<h1 id="test">Hello </h1>\n');
});
it('should escape codeblocks in preparation (1)', function() {

@@ -25,0 +30,0 @@ assert.equal(page.prepare("Hello `world`"), "Hello {% raw %}`world`{% endraw %}");

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