From 08eb287cfb9e4d209373561beadefce06b2442d3 Mon Sep 17 00:00:00 2001 From: benweet Date: Wed, 20 Nov 2013 13:16:48 +0000 Subject: [PATCH] Prepare release --- public/cache.manifest | 2 +- public/res-min/main.js | 51 +++++++++++++++++++++++------------------- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/public/cache.manifest b/public/cache.manifest index 4e03ca9c..9a468347 100644 --- a/public/cache.manifest +++ b/public/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -#Date Tue Nov 19 2013 22:16:50 +#Date Wed Nov 20 2013 13:16:10 CACHE: res/worker.js diff --git a/public/res-min/main.js b/public/res-min/main.js index a9cea9af..19a39d29 100644 --- a/public/res-min/main.js +++ b/public/res-min/main.js @@ -19272,27 +19272,27 @@ function() { var r = "^.+[ \\t]*\\n=+[ \\t]*\\n+|^.+[ \\t]*\\n-+[ \\t]*\\n+|^\\#{1,6}[ \\t]*.+?[ \\t]*\\#*\\n+"; t.config.enabled && e.some(t.config.extensions, function(e) { return "fenced_code_gfm" == e; - }) && (r = "^```.*\\n[\\s\\S]*?\\n```|" + r), n.config.enabled && (r = "^[ \\t]*\\n[ \\t]*\\$\\$[\\s\\S]*?\\$\\$|" + r, - r = "^[ \\t]*\\n[ \\t]*\\\\\\\\[[\\s\\S]*?\\\\\\\\]|" + r, r = "^[ \\t]*\\n[ \\t]*\\\\?\\\\begin\\{[a-z]*\\*?\\}[\\s\\S]*?\\\\end\\{[a-z]*\\*?\\}|" + r), - r = new RegExp(r, "gmi"); + }) && (r = "^```.*\\n[\\s\\S]*?\\n```|" + r), n.config.enabled && (r = "^[ \\t]*\\n\\$\\$[\\s\\S]*?\\$\\$|" + r, + r = "^[ \\t]*\\n\\\\\\\\[[\\s\\S]*?\\\\\\\\]|" + r, r = "^[ \\t]*\\n\\\\?\\\\begin\\{[a-z]*\\*?\\}[\\s\\S]*?\\\\end\\{[a-z]*\\*?\\}|" + r), + r = new RegExp(r, "gm"); var s = i.getConverter(); s.hooks.chain("preConversion", function(t) { + function n(e, t) { + var n = i.substring(a, t); + s.push({ + text: n, + textWithDelimiter: "\n~~~SectionDelimiter~~~\n\n" + n + "\n" + }); + } o.previewStartTime = new Date(); - var n = t + "\n\n", i = [], s = 0; - n.replace(r, function(e, t) { - var o = n.substring(s, t); - i.push({ - text: o, - textWithDelimiter: '\n
\n\n' + o + "\n" - }), s = t; - }); - var a = n.substring(s, t.length); - return i.push({ - text: a, - textWithDelimiter: '\n
\n\n' + a + "\n" - }), o.onSectionsCreated(i), e.reduce(i, function(e, t) { + var i = t + "\n\n", s = [], a = 0; + return i.replace(r, function(e, t) { + n(a, t), a = t; + }), n(a, t.length), o.onSectionsCreated(s), e.reduce(s, function(e, t) { return e + t.textWithDelimiter; }, ""); + }), s.hooks.chain("postConversion", function(e) { + return e.replace(/

~~~SectionDelimiter~~~<\/p>/g, '

'); }); }, r; }), define("text!html/partialRenderingSettingsBlock.html", [], function() { @@ -20735,8 +20735,9 @@ function() { }), h = []; var p, f = l.scrollTop(); l.find(".preview-content > .se-section-delimiter").each(function() { + if (void 0 === p) return p = 0, void 0; var t = e(this), n = t.position().top + f; - void 0 !== p && h.push({ + h.push({ startOffset: p, endOffset: n, height: n - p @@ -20754,7 +20755,7 @@ function() { return o = n, e < t.endOffset; }); if (void 0 !== r) { - var s = (e - r.startOffset) / r.height, a = i[o]; + var s = (e - r.startOffset) / (r.height || 1), a = i[o]; return a.startOffset + a.height * s; } } @@ -22546,7 +22547,7 @@ function() { }); }, r; }), define("text!html/bodyIndex.html", [], function() { - return '\n
\n
\n
\n
\n\n\n\n\n
\n \n \n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
'; + return '\n
\n
\n
\n
\n\n\n\n\n
\n \n \n
\n
\n
\n
\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n
'; }), define("text!html/bodyViewer.html", [], function() { return '\n\n
\n
\n
\n\n\n\n
\n \n \n
\n
\n
\n
\n
\n\n\n'; }), define("text!html/settingsTemplateTooltip.html", [], function() { @@ -26648,7 +26649,7 @@ function() { next: "githubblock" }, { token: "blockquote", - regex: "^\\s*>[ ]", + regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+", next: "blockquote" }, { token: "constant", @@ -26661,13 +26662,13 @@ function() { }, { token: "text", regex: "\\\\\\$" - }, { - token: [ "constant.language.escape", "keyword", "constant.language.escape" ], - regex: "(\\$)(.*)(\\$)" }, { token: "constant.language.escape", regex: "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(", next: "mathblock" + }, { + token: [ "constant.language.escape", "keyword", "constant.language.escape" ], + regex: "(\\$)(.*)(\\$)" }, { token: [ "keyword", "text" ], regex: "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})", @@ -26740,6 +26741,10 @@ function() { token: "empty_line", regex: "^\\s*$", next: "start" + }, { + token: "blockquote", + regex: "^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+", + next: "blockquote" }, { include: "basic", noEscape: !0