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

hexo-renderer-markdown-it

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-renderer-markdown-it - npm Package Compare versions

Comparing version

to
4.1.0

1

index.js

@@ -24,2 +24,3 @@ /* global hexo */

permalinkClass: 'header-anchor',
permalinkSide: 'left',
permalinkSymbol: '¶',

@@ -26,0 +27,0 @@ case: 0,

10

lib/anchors.js

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

const renderPermalink = function(slug, opts, tokens, idx) {
return tokens[idx + 1].children.unshift(Object.assign(new Token('link_open', 'a', 1), {
const permalink = [Object.assign(new Token('link_open', 'a', 1), {
attrs: [['class', opts.permalinkClass], ['href', '#' + slug]]

@@ -14,3 +14,9 @@ }), Object.assign(new Token('text', '', 0), {

content: ''
}));
})];
if (opts.permalinkSide === 'right') {
return tokens[idx + 1].children.push(...permalink);
}
return tokens[idx + 1].children.unshift(...permalink);
};

@@ -17,0 +23,0 @@

{
"name": "hexo-renderer-markdown-it",
"version": "4.0.0",
"description": "Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.",
"main": "index.js",
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
},
"repository": {
"type": "git",
"url": "git://github.com/hexojs/hexo-renderer-markdown-it.git"
},
"keywords": [
"hexo",
"renderer",
"markdown",
"markdown-it",
"hexo-renderer"
],
"directories": {
"lib": "./lib"
},
"files": [
"index.js",
"lib/"
],
"author": "Celso Miranda <contacto@celsomiranda.net> (http://celsomiranda.net/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/hexojs/hexo-renderer-markdown-it/issues"
},
"homepage": "https://github.com/hexojs/hexo-renderer-markdown-it",
"dependencies": {
"hexo-util": "^1.7.0",
"markdown-it": "^10.0.0",
"markdown-it-abbr": "^1.0.4",
"markdown-it-cjk-breaks": "^1.1.2",
"markdown-it-container": "^2.0.0",
"markdown-it-deflist": "^2.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-footnote": "^3.0.1",
"markdown-it-ins": "^3.0.0",
"markdown-it-mark": "^3.0.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0"
},
"devDependencies": {
"chai": "^4.0.0",
"eslint": "^6.0.1",
"eslint-config-hexo": "^4.0.0",
"mocha": "^6.0.2",
"nyc": "^14.1.1"
},
"engines": {
"node": ">=8.6.0"
}
"name": "hexo-renderer-markdown-it",
"version": "4.1.0",
"description": "Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.",
"main": "index.js",
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
},
"repository": "hexojs/hexo-renderer-markdown-it",
"keywords": [
"hexo",
"renderer",
"markdown",
"markdown-it",
"hexo-renderer"
],
"directories": {
"lib": "./lib"
},
"files": [
"index.js",
"lib/"
],
"author": "Celso Miranda <contacto@celsomiranda.net> (http://celsomiranda.net/)",
"license": "MIT",
"bugs": "https://github.com/hexojs/hexo-renderer-markdown-it/issues",
"homepage": "https://github.com/hexojs/hexo-renderer-markdown-it",
"dependencies": {
"hexo-util": "^1.7.0",
"markdown-it": "^10.0.0",
"markdown-it-abbr": "^1.0.4",
"markdown-it-cjk-breaks": "^1.1.2",
"markdown-it-container": "^2.0.0",
"markdown-it-deflist": "^2.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-footnote": "^3.0.1",
"markdown-it-ins": "^3.0.0",
"markdown-it-mark": "^3.0.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0"
},
"devDependencies": {
"chai": "^4.0.0",
"eslint": "^6.0.1",
"eslint-config-hexo": "^4.0.0",
"mocha": "^6.0.2",
"nyc": "^15.0.0"
},
"engines": {
"node": ">=8.6.0"
}
}

@@ -39,4 +39,5 @@ # hexo-renderer-markdown-it

collisionSuffix: ''
permalink: false,
permalink: false
permalinkClass: 'header-anchor'
permalinkSide: 'left'
permalinkSymbol: '¶'

@@ -43,0 +44,0 @@ case: 0