comparison app/assets/javascripts/zp.formatter.js @ 288:c8757469da39

The magic hash was broken.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 04:30:49 +0900
parents 22c4b5f90e24
children
comparison
equal deleted inserted replaced
287:77c157a9e645 288:c8757469da39
2 //= require config/prettify 2 //= require config/prettify
3 (function($) { 3 (function($) {
4 window.zp.formatter = { 4 window.zp.formatter = {
5 raw: function() { return $("#pl pre").text() }, 5 raw: function() { return $("#pl pre").text() },
6 links: function() { return $("#paste-mode a") }, 6 links: function() { return $("#paste-mode a") },
7 current: function() { return this.links().filter(".active").attr("href").slice(1) }, 7 current: function() { return $("#paste-mode .active a").attr("href").slice(1) },
8 markdown: function() { 8 markdown: function() {
9 var area = $("#md div") 9 var area = $("#md div")
10 area.html(marked(this.raw())) 10 area.html(marked(this.raw()))
11 area.find("pre").addClass("prettyprint") 11 area.find("pre").addClass("prettyprint")
12 area.find("a").prop("rel", "nofollow") 12 area.find("a").prop("rel", "nofollow")