From 0834578173c063e92dd4589a143c148c358f8bf3 Mon Sep 17 00:00:00 2001 From: gered Date: Fri, 28 Mar 2014 22:52:57 -0400 Subject: [PATCH] looks like the new markdown-clj fixed this problem --- resources/public/js/site.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/resources/public/js/site.js b/resources/public/js/site.js index 04eb9d9..14b6c16 100644 --- a/resources/public/js/site.js +++ b/resources/public/js/site.js @@ -2,16 +2,5 @@ $(document).ready(function() { var code = $('div.content[role="main"]').find('pre'); code.addClass('prettyprint'); - // TODO: properly fix this in markdown-clj instead of doing this here... - // the problem is markdown-clj inserts newlines immediately after - // the opening
 bit which looks a bit silly
-	code.each(function() {
-		var text = $(this).text();
-		if (text.length >= 2 && text.substring(0, 2) === '\r\n')
-			$(this).text(text.substring(2));
-		else if (text.length >= 1 && text.substring(0, 1) === '\n')
-			$(this).text(text.substring(1));
-	});
-	
 	prettyPrint();
 });