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

markdown-it

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

6.1.1 / 2016-06-21
------------------
- Render `code_inline` & `code_block` attributes if exist.
6.1.0 / 2016-06-19

@@ -2,0 +8,0 @@ ------------------

18

lib/renderer.js

@@ -21,9 +21,19 @@ /**

default_rules.code_inline = function (tokens, idx /*, options, env */) {
return '<code>' + escapeHtml(tokens[idx].content) + '</code>';
default_rules.code_inline = function (tokens, idx, options, env, slf) {
var token = tokens[idx],
attrs = slf.renderAttrs(token);
return '<code' + (attrs ? ' ' + attrs : '') + '>' +
escapeHtml(tokens[idx].content) +
'</code>';
};
default_rules.code_block = function (tokens, idx /*, options, env */) {
return '<pre><code>' + escapeHtml(tokens[idx].content) + '</code></pre>\n';
default_rules.code_block = function (tokens, idx, options, env, slf) {
var token = tokens[idx],
attrs = slf.renderAttrs(token);
return '<pre' + (attrs ? ' ' + attrs : '') + '><code>' +
escapeHtml(tokens[idx].content) +
'</code></pre>\n';
};

@@ -30,0 +40,0 @@

{
"name": "markdown-it",
"version": "6.1.0",
"version": "6.1.1",
"description": "Markdown-it - modern pluggable markdown parser.",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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