markdown-it
Advanced tools
Comparing version
@@ -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 @@ ------------------ |
@@ -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('|'); |
{ | ||
"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
538296
0.17%11706
0.12%