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 8.0.0 to 8.0.1

6

CHANGELOG.md

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

8.0.1 / 2016-10-18
------------------
- Tables: allow tab characters in markup
8.0.0 / 2016-09-16

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

17

lib/rules_block/table.js

@@ -5,3 +5,5 @@ // GFM table, non-standard

var isSpace = require('../common/utils').isSpace;
function getLine(state, line) {

@@ -68,3 +70,5 @@ var pos = state.bMarks[line] + state.blkIndent,

// first character of the second line should be '|' or '-'
// first character of the second line should be '|', '-', ':',
// and no other characters are allowed but spaces;
// basically, this is the equivalent of /^[-:|][-:|\s]*$/ regexp

@@ -74,7 +78,14 @@ pos = state.bMarks[nextLine] + state.tShift[nextLine];

ch = state.src.charCodeAt(pos);
ch = state.src.charCodeAt(pos++);
if (ch !== 0x7C/* | */ && ch !== 0x2D/* - */ && ch !== 0x3A/* : */) { return false; }
while (pos < state.eMarks[nextLine]) {
ch = state.src.charCodeAt(pos);
if (ch !== 0x7C/* | */ && ch !== 0x2D/* - */ && ch !== 0x3A/* : */ && !isSpace(ch)) { return false; }
pos++;
}
lineText = getLine(state, startLine + 1);
if (!/^[-:| ]+$/.test(lineText)) { return false; }

@@ -81,0 +92,0 @@ columns = lineText.split('|');

6

package.json
{
"name": "markdown-it",
"version": "8.0.0",
"version": "8.0.1",
"description": "Markdown-it - modern pluggable markdown parser.",

@@ -35,4 +35,4 @@ "keywords": [

"devDependencies": {
"ansi": "~0.3.0",
"autoprefixer-stylus": "~0.10.0",
"ansi": "^0.3.0",
"autoprefixer-stylus": "^0.11.0",
"benchmark": "~2.1.0",

@@ -39,0 +39,0 @@ "browserify": "*",

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