showdown/compressed/extensions/table.min.js.map
Estevão Soares dos Santos 0e7e1e7dcb fix(): should fix issue #133
2015-04-22 15:28:45 +01:00

1 line
7.7 KiB
Plaintext

{"version":3,"sources":["..\\..\\src\\extensions\\table.js"],"names":[],"mappings":"AAAA,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI;AAAA;AAAA,GAEjB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO;AAAA,GAC/D,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ;AAAA;AAAA,GAEzB,MAAM;AAAA;AAAA;AAAA,KAGJ,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;AAAA;AAAA,MAEd,IAAI,OAAO,KAAK,CAAC,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO;AAAA,KAC3D,KAAK,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA,CAInB,QAAQ;AAAA,EACP,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,SAAS;AAAA,IAC5B,GAAG,CAAC,MAAM,OAAO,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,MAAM;AAAA,IACnD,MAAM,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM;AAAA,MACzB,EAAE,EAAE,MAAM,CAAC,IAAI,aAAa,MAAM;AAAA,MAClC,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,GAAG,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,WAAW;AAAA,MACrD,MAAM,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,KAAK,QAAQ,MAAM,MAAM,EAAE;AAAA;AAAA,IAElE,MAAM,CAAC,EAAE,GAAG,QAAQ,CAAC,IAAI;AAAA,MACvB,MAAM,GAAG,EAAE,CAAC,K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C,QAAQ,CAAC,UAAU,CAAC,KAAK,GAAG,KAAK;AAAA,KAC3H,MAAM,CAAC,IAAI,CAAC,MAAM;AAAA,EACrB,EAAE,EAAE,MAAM,CAAC,MAAM,MAAM,SAAS;AAAA,IAC9B,MAAM,CAAC,OAAO,GAAG,KAAK;AAAA;AAAA","file":"table.min.js","sourcesContent":["/*global module:true*/\r\n/*\r\n * Basic table support with re-entrant parsing, where cell content\r\n * can also specify markdown.\r\n *\r\n * Tables\r\n * ======\r\n *\r\n * | Col 1 | Col 2 |\r\n * |======== |====================================================|\r\n * |**bold** | ![Valid XHTML] (http://w3.org/Icons/valid-xhtml10) |\r\n * | Plain | Value |\r\n *\r\n */\r\n\r\n(function(){\r\n var table = function(converter) {\r\n var tables = {}, style = 'text-align:left;', filter;\r\n tables.th = function(header){\r\n if (header.trim() === \"\") { return \"\";}\r\n var id = header.trim().replace(/ /g, '_').toLowerCase();\r\n return '<th id=\"' + id + '\" style=\"'+style+'\">' + header + '</th>';\r\n };\r\n tables.td = function(cell) {\r\n return '<td style=\"'+style+'\">' + converter.makeHtml(cell) + '</td>';\r\n };\r\n tables.ths = function(){\r\n var out = \"\", i = 0, hs = [].slice.apply(arguments);\r\n for (i;i<hs.length;i+=1) {\r\n out += tables.th(hs[i]) + '\\n';\r\n }\r\n return out;\r\n };\r\n tables.tds = function(){\r\n var out = \"\", i = 0, ds = [].slice.apply(arguments);\r\n for (i;i<ds.length;i+=1) {\r\n out += tables.td(ds[i]) + '\\n';\r\n }\r\n return out;\r\n };\r\n tables.thead = function() {\r\n var out, i = 0, hs = [].slice.apply(arguments);\r\n out = \"<thead>\\n\";\r\n out += \"<tr>\\n\";\r\n out += tables.ths.apply(this, hs);\r\n out += \"</tr>\\n\";\r\n out += \"</thead>\\n\";\r\n return out;\r\n };\r\n tables.tr = function() {\r\n var out, i = 0, cs = [].slice.apply(arguments);\r\n out = \"<tr>\\n\";\r\n out += tables.tds.apply(this, cs);\r\n out += \"</tr>\\n\";\r\n return out;\r\n };\r\n filter = function(text) {\r\n var i=0, lines = text.split('\\n'), line, hs, rows, out = [];\r\n for (i; i<lines.length;i+=1) {\r\n line = lines[i];\r\n // looks like a table heading\r\n if (line.trim().match(/^[|]{1}.*[|]{1}$/)) {\r\n line = line.trim();\r\n var tbl = [];\r\n tbl.push('<table>');\r\n hs = line.substring(1, line.length -1).split('|');\r\n tbl.push(tables.thead.apply(this, hs));\r\n line = lines[++i];\r\n if (!line.trim().match(/^[|]{1}[-=|: ]+[|]{1}$/)) {\r\n // not a table rolling back\r\n line = lines[--i];\r\n }\r\n else {\r\n line = lines[++i];\r\n tbl.push('<tbody>');\r\n while (line.trim().match(/^[|]{1}.*[|]{1}$/)) {\r\n line = line.trim();\r\n tbl.push(tables.tr.apply(this, line.substring(1, line.length -1).split('|')));\r\n line = lines[++i];\r\n }\r\n tbl.push('</tbody>');\r\n tbl.push('</table>');\r\n // we are done with this table and we move along\r\n out.push(tbl.join('\\n'));\r\n continue;\r\n }\r\n }\r\n out.push(line);\r\n }\r\n return out.join('\\n');\r\n };\r\n return [\r\n {\r\n type: 'lang',\r\n filter: filter\r\n }\r\n ];\r\n };\r\n\r\n // Client-side export\r\n if (typeof window !== 'undefined' && window.Showdown && window.Showdown.extensions) { window.Showdown.extensions.table = table; }\r\n // Server-side export\r\n if (typeof module !== 'undefined') {\r\n module.exports = table;\r\n }\r\n}());\r\n"]}