aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/app.js
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-16 23:25:01 +0800
committerslene <vslene@gmail.com>2014-03-16 23:25:01 +0800
commitc9bf526be74a29a9f2e620cbcd06989a40597531 (patch)
tree52a25d131dcfbee07ebfd04e41e9ce0ea83691ce /public/js/app.js
parent015174484a3aa430e30801e0c3c5ce0bdc4a5bf5 (diff)
downloadgitea-c9bf526be74a29a9f2e620cbcd06989a40597531.tar.gz
gitea-c9bf526be74a29a9f2e620cbcd06989a40597531.zip
markdown & code style
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 4a5d205347..94e38cc134 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -111,4 +111,13 @@ function initUserSetting(){
});
}
});
-} \ No newline at end of file
+}
+
+;(function($){
+ // on Dom Ready
+ $(function(){
+ var $pre = $('.markdown').find('pre > code').parent();
+ $pre.addClass("prettyprint");
+ prettyPrint();
+ });
+})(jQuery);