Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
Update markdown-it to 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiht committed Apr 5, 2016
1 parent c57ee09 commit e2d1260
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 34 deletions.
8 changes: 4 additions & 4 deletions chrome/lib/markdown-it/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"Makefile",
"index*"
],
"version": "6.0.0",
"_release": "6.0.0",
"version": "6.0.1",
"_release": "6.0.1",
"_resolution": {
"type": "version",
"tag": "6.0.0",
"commit": "38bf443aab2f169b3c2587cbeee89afba2581604"
"tag": "6.0.1",
"commit": "8fcb93cdcfc653788bba5cc6030a89a8b41134db"
},
"_source": "git://github.com/markdown-it/markdown-it.git",
"_target": "^6.0.0",
Expand Down
6 changes: 6 additions & 0 deletions chrome/lib/markdown-it/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
6.0.1 / 2016-04-02
------------------

- Improve support of missing values in tables, #224.


6.0.0 / 2016-02-11
------------------

Expand Down
4 changes: 2 additions & 2 deletions chrome/lib/markdown-it/bin/markdown-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ function readFile(filename, encoding, callback) {
// read from stdin
var chunks = [];

process.stdin.on('data', function(chunk) { chunks.push(chunk); });
process.stdin.on('data', function (chunk) { chunks.push(chunk); });

process.stdin.on('end', function() {
process.stdin.on('end', function () {
return callback(null, Buffer.concat(chunks).toString(encoding));
});
} else {
Expand Down
27 changes: 15 additions & 12 deletions chrome/lib/markdown-it/dist/markdown-it.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! markdown-it 6.0.0 https://github.com//markdown-it/markdown-it @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownit = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
/*! markdown-it 6.0.1 https://github.com//markdown-it/markdown-it @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownit = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// HTML5 entities map: { name -> utf16string }
//
'use strict';
Expand Down Expand Up @@ -222,7 +222,7 @@ function unescapeMd(str) {
function unescapeAll(str) {
if (str.indexOf('\\') < 0 && str.indexOf('&') < 0) { return str; }

return str.replace(UNESCAPE_ALL_RE, function(match, escaped, entity) {
return str.replace(UNESCAPE_ALL_RE, function (match, escaped, entity) {
if (escaped) { return escaped; }
return replaceEntityPattern(match, entity);
});
Expand Down Expand Up @@ -254,7 +254,7 @@ function escapeHtml(str) {

var REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g;

function escapeRE (str) {
function escapeRE(str) {
return str.replace(REGEXP_ESCAPE_RE, '\\$&');
}

Expand Down Expand Up @@ -580,7 +580,7 @@ module.exports = function parseLinkTitle(str, pos, max) {
};

},{"../common/utils":4}],9:[function(require,module,exports){
// Main perser class
// Main parser class

'use strict';

Expand Down Expand Up @@ -1272,7 +1272,7 @@ ParserBlock.prototype.tokenize = function (state, startLine, endLine) {
ParserBlock.prototype.parse = function (src, md, env, outTokens) {
var state;

if (!src) { return []; }
if (!src) { return; }

state = new this.State(src, md, env, outTokens);

Expand Down Expand Up @@ -3846,9 +3846,12 @@ module.exports = function table(state, startLine, endLine, silent) {
for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
if (state.sCount[nextLine] < state.blkIndent) { break; }

lineText = getLine(state, nextLine).trim();
lineText = getLine(state, nextLine);
if (lineText.indexOf('|') === -1) { break; }
columns = escapedSplit(lineText.replace(/^\||\|$/g, ''));

// keep spaces at beginning of line to indicate an empty first cell, but
// strip trailing whitespace
columns = escapedSplit(lineText.replace(/^\||\|\s*$/g, ''));

token = state.push('tr_open', 'tr', 1);
for (i = 0; i < columnCount; i++) {
Expand Down Expand Up @@ -4089,10 +4092,10 @@ var SCOPED_ABBR_TEST_RE = /\((c|tm|r|p)\)/i;

var SCOPED_ABBR_RE = /\((c|tm|r|p)\)/ig;
var SCOPED_ABBR = {
'c': '©',
'r': '®',
'p': '§',
'tm': '™'
c: '©',
r: '®',
p: '§',
tm: '™'
};

function replaceFn(match, name) {
Expand Down Expand Up @@ -4715,7 +4718,7 @@ var ESCAPED = [];
for (var i = 0; i < 256; i++) { ESCAPED.push(0); }

'\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-'
.split('').forEach(function(ch) { ESCAPED[ch.charCodeAt(0)] = 1; });
.split('').forEach(function (ch) { ESCAPED[ch.charCodeAt(0)] = 1; });


module.exports = function escape(state, silent) {
Expand Down
8 changes: 4 additions & 4 deletions chrome/lib/markdown-it/dist/markdown-it.min.js

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions chrome/lib/markdown-it/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdown-it",
"version": "6.0.0",
"version": "6.0.1",
"description": "Markdown-it - modern pluggable markdown parser.",
"keywords": [
"markdown",
Expand All @@ -9,7 +9,6 @@
"markdown-it",
"markdown-it-plugin"
],
"homepage": "https://github.com/markdown-it/markdown-it",
"repository": "markdown-it/markdown-it",
"license": "MIT",
"main": "index.js",
Expand All @@ -26,7 +25,7 @@
"dist/"
],
"dependencies": {
"argparse": "~1.0.3",
"argparse": "^1.0.7",
"entities": "~1.1.1",
"linkify-it": "~1.2.0",
"mdurl": "~1.0.1",
Expand All @@ -35,21 +34,20 @@
"devDependencies": {
"ansi": "~0.3.0",
"autolinker": "^0.18.1",
"autoprefixer-stylus": "~0.8.1",
"benchmark": "~1.0.0",
"autoprefixer-stylus": "~0.9.2",
"benchmark": "~2.1.0",
"browserify": "*",
"chai": "^3.4.1",
"commonmark": "~0.23.0",
"coveralls": "~2.11.6",
"eslint": "0.24.0",
"eslint-plugin-nodeca": "^1.0.0",
"highlight.js": "^9.1.0",
"commonmark": "~0.25.0",
"coveralls": "~2.11.9",
"eslint": "~2.6.0",
"highlight.js": "^9.2.0",
"istanbul": "*",
"jade": "~1.11.0",
"markdown-it-abbr": "^1.0.2",
"markdown-it-container": "^2.0.0",
"markdown-it-deflist": "^2.0.0",
"markdown-it-emoji": "^1.0.0",
"markdown-it-emoji": "^1.1.1",
"markdown-it-footnote": "^2.0.0",
"markdown-it-for-inline": "~0.1.0",
"markdown-it-ins": "^2.0.0",
Expand All @@ -59,7 +57,8 @@
"markdown-it-testgen": "~0.1.3",
"marked": "0.3.5",
"mocha": "*",
"stylus": "~0.53.0",
"ndoc": "^4.0.0",
"stylus": "~0.54.2",
"uglify-js": "*"
}
}

0 comments on commit e2d1260

Please sign in to comment.