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 4.3.0 to 4.3.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

4.3.1 / 2015-07-15
------------------
- Allow numbered lists starting from zero.
- Fix class name injection in fence renderer.
4.3.0 / 2015-06-29

@@ -2,0 +9,0 @@ ------------------

5

lib/renderer.js

@@ -33,7 +33,8 @@ /**

var token = tokens[idx],
info = token.info ? unescapeAll(token.info).trim() : '',
langName = '',
highlighted;
if (token.info) {
langName = unescapeAll(token.info.trim().split(/\s+/g)[0]);
if (info) {
langName = info.split(/\s+/g)[0];
token.attrPush([ 'class', options.langPrefix + langName ]);

@@ -40,0 +41,0 @@ }

2

lib/rules_block/list.js

@@ -131,3 +131,3 @@ // Lists

token = state.push('ordered_list_open', 'ol', 1);
if (markerValue > 1) {
if (markerValue !== 1) {
token.attrs = [ [ 'start', markerValue ] ];

@@ -134,0 +134,0 @@ }

{
"name": "markdown-it",
"version": "4.3.0",
"version": "4.3.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