ultra_markdown 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4125a1f8d90f578085ef8fbeef52b37b0421ef1f
4
+ data.tar.gz: 5539b14866e62dfe07b4424b41884bd95facd531
5
+ SHA512:
6
+ metadata.gz: ee7275d563a0c4d542eace4f0b10fcd39158767dc0a41283c50a59ebc93ae73813fa1cec26a7be347a3ee41e9891efca6437f2fbaec3cc27dba9eabef47d2745
7
+ data.tar.gz: 721fe5ad5787815212db489669e48a1acbdfdbc70e0685439173e4842acc5b64546e244cc5043770cc60dd39dc6cd8c02ce16c43456081122e05330565b2cafa
data/README.md CHANGED
@@ -19,6 +19,18 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
 
22
+ `"string".to_markdown`
23
+
24
+ ### Support
25
+
26
+ * gist tag
27
+ * OctoPress code block
28
+ * MathJax
29
+
30
+ ### Demo
31
+
32
+ Extract from [Logdown](http://logdown.com) , a Markdown Blogging Platform, see demo : <http://logdown.com/demo>
33
+
22
34
  ### CSS
23
35
 
24
36
  ```
@@ -66,7 +66,7 @@ module Redcarpet
66
66
  end
67
67
 
68
68
  # Topic 裡面,所有的 head 改為 h2 顯示
69
- def header(text, header_level)
69
+ def header(text, header_level, anchor = nil)
70
70
  header_level += 1
71
71
  "<h#{header_level}>#{text}</h#{header_level}>"
72
72
  end
@@ -1,3 +1,3 @@
1
1
  module UltraMarkdown
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultra_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
5
- prerelease:
4
+ version: '0.3'
6
5
  platform: ruby
7
6
  authors:
8
7
  - tonilin
@@ -10,108 +9,95 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-12-19 00:00:00.000000000 Z
12
+ date: 2014-04-15 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: nokogiri
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: pygments.rb
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: redcarpet
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: airbrake
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rails_autolink
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - '>='
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :runtime
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - '>='
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: sanitize
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :runtime
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: bundler
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
102
  - - ~>
117
103
  - !ruby/object:Gem::Version
@@ -119,7 +105,6 @@ dependencies:
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
109
  - - ~>
125
110
  - !ruby/object:Gem::Version
@@ -127,17 +112,15 @@ dependencies:
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: rake
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - '>='
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - '>='
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  description: Markdown Parser for various purposes
@@ -174,27 +157,25 @@ files:
174
157
  homepage: https://github.com/rocodev/ultra_markdown
175
158
  licenses:
176
159
  - MIT
160
+ metadata: {}
177
161
  post_install_message:
178
162
  rdoc_options: []
179
163
  require_paths:
180
164
  - lib
181
165
  required_ruby_version: !ruby/object:Gem::Requirement
182
- none: false
183
166
  requirements:
184
- - - ! '>='
167
+ - - '>='
185
168
  - !ruby/object:Gem::Version
186
169
  version: '0'
187
170
  required_rubygems_version: !ruby/object:Gem::Requirement
188
- none: false
189
171
  requirements:
190
- - - ! '>='
172
+ - - '>='
191
173
  - !ruby/object:Gem::Version
192
174
  version: '0'
193
175
  requirements: []
194
176
  rubyforge_project:
195
- rubygems_version: 1.8.25
177
+ rubygems_version: 2.1.3
196
178
  signing_key:
197
- specification_version: 3
179
+ specification_version: 4
198
180
  summary: Markdown Parser for various purposes
199
181
  test_files: []
200
- has_rdoc: