markdown-it-synapse-table
Advanced tools
@@ -1,2 +0,2 @@ | ||
| /*! markdown-it-synapse-table 1.0.1 https://github.com/jay-hodgson/markdown-it-synapse-table @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.markdownitSynapseTable = 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-synapse-table 1.0.2 https://github.com/jay-hodgson/markdown-it-synapse-table @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.markdownitSynapseTable = 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){ | ||
| // Process '## headings' | ||
@@ -66,3 +66,3 @@ | ||
| tableClassStartRE = new RegExp( | ||
| '^\\s*{[|]{1}\\s+class\\s*=\\s*"\\s*(.*)"\\s*'); | ||
| '^\\s*{[|]{1}\\s*class\\s*=\\s*"\\s*(.*)"\\s*'); | ||
| } | ||
@@ -69,0 +69,0 @@ |
@@ -1,2 +0,2 @@ | ||
| /*! markdown-it-synapse-table 1.0.1 https://github.com/jay-hodgson/markdown-it-synapse-table @license MIT */ | ||
| !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.markdownitSynapseTable=e()}}(function(){return function e(t,r,n){function s(i,u){if(!r[i]){if(!t[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){var r=t[i][1][e];return s(r?r:e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(e,t,r){"use strict";t.exports=function(e){function t(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function r(e){var t,r=[],n=0,s=e.length,o=0,i=0,u=!1,f=0;for(t=e.charCodeAt(n);s>n;)96===t&&o%2===0?(u=!u,f=n):124!==t||o%2!==0||u?92===t?o++:o=0:(r.push(e.substring(i,n)),i=n+1),n++,n===s&&u&&(u=!1,n=f+1),t=e.charCodeAt(n);return r.push(e.substring(i)),r}function n(e,n,i,u){var f,a,p,l,d,h,c,b,m,_,g,k,y=!1;if(n+1>i)return!1;if(a=e.bMarks[n]+e.tShift[n],a>=e.eMarks[n])return!1;if(f=t(e,n),s||(s=new RegExp('^\\s*{[|]{1}\\s+class\\s*=\\s*"\\s*(.*)"\\s*')),o||(o=new RegExp("^\\s*[|]{1}}\\s*")),s.test(f)?(_=f.match(s)[1],k=n+1,y=!0):k=n,e.sCount[k]<e.blkIndent)return!1;if(a=e.bMarks[k]+e.tShift[k],a>=e.eMarks[k])return!1;if(f=t(e,k).trim(),-1===f.indexOf("|")&&!y)return!1;if(d=r(f.replace(/^\||\|$/g,"")),h=d.length,u)return!0;if(f=t(e,k+1).trim(),-1===f.indexOf("|")&&!y)return!1;if(c=e.push("table_open","table",1),c.map=b=[n,0],_&&(c.attrs=[["class"," "+_+" "]],n++),/^[-:| ]+$/.test(f)){for(g=k+2,c=e.push("thead_open","thead",1),c.map=[n,n+1],c=e.push("tr_open","tr",1),c.map=[n,n+1],p=0;p<d.length;p++)c=e.push("th_open","th",1),c.map=[n,n+1],c=e.push("inline","",0),c.content=d[p].trim(),c.map=[n,n+1],c.children=[],c=e.push("th_close","th",-1);c=e.push("tr_close","tr",-1),c=e.push("thead_close","thead",-1)}else g=k;for(c=e.push("tbody_open","tbody",1),c.map=m=[g,0],l=g;i>l&&!(e.sCount[l]<e.blkIndent);l++){if(f=t(e,l).trim(),o.test(f)){l++;break}if(-1===f.indexOf("|")&&!y)break;for(d=r(f.replace(/^\||\|$/g,"")),c=e.push("tr_open","tr",1),p=0;h>p;p++)c=e.push("td_open","td",1),c=e.push("inline","",0),c.content=d[p]?d[p].trim():"",c.children=[],c=e.push("td_close","td",-1);c=e.push("tr_close","tr",-1)}return c=e.push("tbody_close","tbody",-1),c=e.push("table_close","table",-1),b[1]=m[1]=l,e.line=l,!0}var s,o,i=["paragraph","reference"];e.block.ruler.at("table",n,{alt:i.slice()})}},{}]},{},[1])(1)}); | ||
| /*! markdown-it-synapse-table 1.0.2 https://github.com/jay-hodgson/markdown-it-synapse-table @license MIT */ | ||
| !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.markdownitSynapseTable=e()}}(function(){return function e(t,r,n){function s(i,u){if(!r[i]){if(!t[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){var r=t[i][1][e];return s(r?r:e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)s(n[i]);return s}({1:[function(e,t,r){"use strict";t.exports=function(e){function t(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function r(e){var t,r=[],n=0,s=e.length,o=0,i=0,u=!1,f=0;for(t=e.charCodeAt(n);s>n;)96===t&&o%2===0?(u=!u,f=n):124!==t||o%2!==0||u?92===t?o++:o=0:(r.push(e.substring(i,n)),i=n+1),n++,n===s&&u&&(u=!1,n=f+1),t=e.charCodeAt(n);return r.push(e.substring(i)),r}function n(e,n,i,u){var f,a,p,l,d,h,c,b,m,_,g,k,y=!1;if(n+1>i)return!1;if(a=e.bMarks[n]+e.tShift[n],a>=e.eMarks[n])return!1;if(f=t(e,n),s||(s=new RegExp('^\\s*{[|]{1}\\s*class\\s*=\\s*"\\s*(.*)"\\s*')),o||(o=new RegExp("^\\s*[|]{1}}\\s*")),s.test(f)?(_=f.match(s)[1],k=n+1,y=!0):k=n,e.sCount[k]<e.blkIndent)return!1;if(a=e.bMarks[k]+e.tShift[k],a>=e.eMarks[k])return!1;if(f=t(e,k).trim(),-1===f.indexOf("|")&&!y)return!1;if(d=r(f.replace(/^\||\|$/g,"")),h=d.length,u)return!0;if(f=t(e,k+1).trim(),-1===f.indexOf("|")&&!y)return!1;if(c=e.push("table_open","table",1),c.map=b=[n,0],_&&(c.attrs=[["class"," "+_+" "]],n++),/^[-:| ]+$/.test(f)){for(g=k+2,c=e.push("thead_open","thead",1),c.map=[n,n+1],c=e.push("tr_open","tr",1),c.map=[n,n+1],p=0;p<d.length;p++)c=e.push("th_open","th",1),c.map=[n,n+1],c=e.push("inline","",0),c.content=d[p].trim(),c.map=[n,n+1],c.children=[],c=e.push("th_close","th",-1);c=e.push("tr_close","tr",-1),c=e.push("thead_close","thead",-1)}else g=k;for(c=e.push("tbody_open","tbody",1),c.map=m=[g,0],l=g;i>l&&!(e.sCount[l]<e.blkIndent);l++){if(f=t(e,l).trim(),o.test(f)){l++;break}if(-1===f.indexOf("|")&&!y)break;for(d=r(f.replace(/^\||\|$/g,"")),c=e.push("tr_open","tr",1),p=0;h>p;p++)c=e.push("td_open","td",1),c=e.push("inline","",0),c.content=d[p]?d[p].trim():"",c.children=[],c=e.push("td_close","td",-1);c=e.push("tr_close","tr",-1)}return c=e.push("tbody_close","tbody",-1),c=e.push("table_close","table",-1),b[1]=m[1]=l,e.line=l,!0}var s,o,i=["paragraph","reference"];e.block.ruler.at("table",n,{alt:i.slice()})}},{}]},{},[1])(1)}); |
+1
-1
@@ -65,3 +65,3 @@ // Process '## headings' | ||
| tableClassStartRE = new RegExp( | ||
| '^\\s*{[|]{1}\\s+class\\s*=\\s*"\\s*(.*)"\\s*'); | ||
| '^\\s*{[|]{1}\\s*class\\s*=\\s*"\\s*(.*)"\\s*'); | ||
| } | ||
@@ -68,0 +68,0 @@ |
+1
-1
| { | ||
| "name": "markdown-it-synapse-table", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "tag for markdown-it markdown parser.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |