Skip to content

Commit

Permalink
markdown support
Browse files Browse the repository at this point in the history
  • Loading branch information
angdev committed Aug 24, 2014
1 parent 648f54b commit a9849b1
Show file tree
Hide file tree
Showing 3 changed files with 1,751 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@
//= require jquery-ui
//= require turbolinks
//= require_tree .

$(document).on('ready page:load', function () {
$('.markdown').each(function () {
$(this).html(markdown.toHTML($(this).html().trim()), null, { escape: true });
});
});
Loading

1 comment on commit a9849b1

@yhoonkim
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다. 마크다운 짱짱멘!

Please sign in to comment.