diff options
author | slene <vslene@gmail.com> | 2014-03-16 23:25:01 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-16 23:25:01 +0800 |
commit | c9bf526be74a29a9f2e620cbcd06989a40597531 (patch) | |
tree | 52a25d131dcfbee07ebfd04e41e9ce0ea83691ce /public/js/app.js | |
parent | 015174484a3aa430e30801e0c3c5ce0bdc4a5bf5 (diff) | |
download | gitea-c9bf526be74a29a9f2e620cbcd06989a40597531.tar.gz gitea-c9bf526be74a29a9f2e620cbcd06989a40597531.zip |
markdown & code style
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 11 |
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); |