md_preview 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/md_preview/version.rb
CHANGED
@@ -16,7 +16,7 @@ var MdPreview = {};
|
|
16
16
|
});
|
17
17
|
|
18
18
|
// override tab clicks
|
19
|
-
$('div.markdown-preview ul.tabs li:not(.label) a'
|
19
|
+
$(document).on('click', 'div.markdown-preview ul.tabs li:not(.label) a', function(e) {
|
20
20
|
var tabs = $(this).parents('ul').find('li');
|
21
21
|
var tabContents = $(this).parents('ul').next('.tab-container').find('.tab-content');
|
22
22
|
|
@@ -40,7 +40,7 @@ var MdPreview = {};
|
|
40
40
|
});
|
41
41
|
|
42
42
|
// override links in preview
|
43
|
-
$('tab-container .preview a'
|
43
|
+
$(document).on('click', 'tab-container .preview a', function(e){
|
44
44
|
window.open(e.target.href);
|
45
45
|
e.preventDefault();
|
46
46
|
});
|
@@ -111,4 +111,4 @@ var MdPreview = {};
|
|
111
111
|
}
|
112
112
|
});
|
113
113
|
|
114
|
-
})(jQuery);
|
114
|
+
})(jQuery);
|
@@ -6,13 +6,14 @@ div.markdown-preview
|
|
6
6
|
margin-bottom: 1em
|
7
7
|
|
8
8
|
textarea
|
9
|
-
width:
|
9
|
+
width: 100%
|
10
10
|
height: 250px
|
11
11
|
font-size: 1.1em
|
12
12
|
font-family: sans-serif
|
13
13
|
padding: 0.75em
|
14
14
|
margin: 0
|
15
|
-
|
15
|
+
box-sizing: border-box
|
16
|
+
|
16
17
|
div.preview
|
17
18
|
min-height: 145px
|
18
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: md_preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.1.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: redcarpet
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: 2.0.0
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.0.0
|
36
46
|
description: Rails plugin to unobtrusively add markdown preview to textareas
|
37
47
|
email:
|
38
48
|
- jordan.byron@gmail.com
|
@@ -73,7 +83,6 @@ files:
|
|
73
83
|
- test/dummy/config/locales/en.yml
|
74
84
|
- test/dummy/config/routes.rb
|
75
85
|
- test/dummy/config.ru
|
76
|
-
- test/dummy/log/test.log
|
77
86
|
- test/dummy/public/404.html
|
78
87
|
- test/dummy/public/422.html
|
79
88
|
- test/dummy/public/500.html
|
@@ -96,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
105
|
version: '0'
|
97
106
|
segments:
|
98
107
|
- 0
|
99
|
-
hash:
|
108
|
+
hash: 3609784200700532133
|
100
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
110
|
none: false
|
102
111
|
requirements:
|
@@ -105,10 +114,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
114
|
version: '0'
|
106
115
|
segments:
|
107
116
|
- 0
|
108
|
-
hash:
|
117
|
+
hash: 3609784200700532133
|
109
118
|
requirements: []
|
110
119
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
120
|
+
rubygems_version: 1.8.23
|
112
121
|
signing_key:
|
113
122
|
specification_version: 3
|
114
123
|
summary: Markdown preview for Rails
|
@@ -133,7 +142,6 @@ test_files:
|
|
133
142
|
- test/dummy/config/locales/en.yml
|
134
143
|
- test/dummy/config/routes.rb
|
135
144
|
- test/dummy/config.ru
|
136
|
-
- test/dummy/log/test.log
|
137
145
|
- test/dummy/public/404.html
|
138
146
|
- test/dummy/public/422.html
|
139
147
|
- test/dummy/public/500.html
|
data/test/dummy/log/test.log
DELETED
File without changes
|