summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 4068d59b..26fc0cc8 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -386,7 +386,7 @@ $(window).resize(function () {
});
//when page unload
$(window).unload(function () {
- //na
+ writeHistory(ui.area.markdown);
});
$(window).error(function () {
setNeedRefresh();
@@ -1863,7 +1863,7 @@ $(editor.getInputField())
},
{ // Code block language strategy
langs: supportCodeModes,
- match: /(^|\n)```(\w*)$/,
+ match: /(^|\n)```(\w+)$/,
search: function (term, callback) {
callback($.map(this.langs, function (lang) {
return lang.indexOf(term) === 0 ? lang : null;