Added preview of the file "readme" like in github with using showdown.js parser (http://github.com/coreyti/showdown).

This commit is contained in:
Michał Prochowski
2012-06-13 01:53:34 +02:00
parent 3c26f08599
commit c6de3bb8c8
8 changed files with 125 additions and 0 deletions

View File

@@ -10,3 +10,9 @@ $(function () {
mode: mode
});
});
if ($('#readme-content').length) {
var converter = new Showdown.converter();
$('#readme-content').html(converter.makeHtml($('#readme-content').text()));
}
});

62
web/js/showdown.js Normal file

File diff suppressed because one or more lines are too long