mastalk 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc711ce411ed8189be2537d557277b9664b2148c
4
- data.tar.gz: f65300d9c12469b989fb37a89e5c3e7544f132bf
3
+ metadata.gz: 829b10e0c79e8756ed7f1071e4ce601c3e0b61c1
4
+ data.tar.gz: b95ac7722329393f47d0cc950a0b8434a8ff7f09
5
5
  SHA512:
6
- metadata.gz: bc5412ac212c8ff5b1539d2805f1ade251d7126be85b3de7891aae556abba2cbd332700c9987486dec4d489d7d8eef59f0cd09c6865e3148cea83d1f9e28c5c5
7
- data.tar.gz: 1db2b1f373bff52f580db589322a79f98983629e43d7e83049c306f21cad19a5f249aa5f54cb3dba16a68a9e1ab12512363a5e48e62818a21e93aa4d0ff7c9dc
6
+ metadata.gz: 948d6285e25216ecc79749d2a8287fec031c9c1ed4ab3b1337d7cd551b77999d243c2af6c68bc1eb720919e521c0f1d46c46bd5d66f336628abb87d283ae3341
7
+ data.tar.gz: 2c256c87952ed81b28f2a01cca5b6f98028a715869ff71e9b6a995589007fcd4e5d6bc827ea6101114981b4ee07afe13bca5a6dcb0870fafbaf89cfef961a324
data/README.md CHANGED
@@ -92,12 +92,12 @@ Outputs:
92
92
 
93
93
  ```
94
94
  $yes-no
95
- [y] You should do this
96
- [y] and then do this
97
- [y] and finally this
98
- [n] You should not do this
99
- [n] or this
100
- [n] and definitely not do this
95
+ [y] You should do this [/y]
96
+ [y] and then do this [/y]
97
+ [y] and finally this [/y]
98
+ [n] You should not do this [/n]
99
+ [n] or this [/n]
100
+ [n] and definitely not do this [/n]
101
101
  $end
102
102
  ```
103
103
 
@@ -114,6 +114,26 @@ Outputs:
114
114
  </ul>
115
115
  ```
116
116
 
117
+ ### Bullets (inside tables)
118
+
119
+ ```
120
+ $bullet
121
+ [%] You should do this [/%]
122
+ [%] and then do this [/%]
123
+ [%] and finally this [/%]
124
+ $point
125
+ ```
126
+
127
+ Outputs:
128
+
129
+ ```
130
+ <ul>
131
+ <li>You should do this</li>
132
+ <li>and then do this</li>
133
+ <li>and finally this</li>
134
+ </ul>
135
+ ```
136
+
117
137
  ### Video
118
138
 
119
139
  `.video-wrapper`
@@ -172,3 +192,13 @@ Outputs:
172
192
  </div>
173
193
  ```
174
194
 
195
+ ### Line break
196
+
197
+ ```
198
+ @~
199
+ ```
200
+
201
+ Outputs:
202
+ ```
203
+ <br />
204
+ ```
@@ -0,0 +1,3 @@
1
+ # $bullet, $point
2
+
3
+ <ul><%= Mastalk::Document.new(body.strip).to_html.gsub(/<p>|<\/p>|\n/, '') %></ul>
@@ -0,0 +1,3 @@
1
+ # [%], [/%]
2
+
3
+ <li><%= Kramdown::Document.new(body.strip).to_html.gsub(/<p>|<\/p>|\n/, '') %></li>
data/mastalk.gemspec CHANGED
@@ -3,8 +3,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'mastalk'
6
- s.version = '0.3.1'
7
- s.date = '2014-11-26'
6
+ s.version = '0.3.2'
7
+ s.date = '2014-12-02'
8
8
  s.summary = 'mastalk'
9
9
  s.description = 'Mastalk markdown extension language'
10
10
  s.authors = ['Douglas Roper']
data/spec/mastalk_spec.rb CHANGED
@@ -118,6 +118,18 @@ describe Mastalk::Document do
118
118
  end
119
119
  end
120
120
 
121
+ context 'bullets inside table' do
122
+ let(:source) { "|table|header|\n|$bullet [%] yes [/%] $point|here|" }
123
+
124
+ let(:expected) do
125
+ "<table>\n <tbody>\n <tr>\n <td>table</td>\n <td>header</td>\n </tr>\n <tr>\n <td><ul><li>yes</li></ul></td>\n <td>here</td>\n </tr>\n </tbody>\n</table>\n"
126
+ end
127
+
128
+ it 'pre-processes correctly' do
129
+ expect(subject.to_html).to eq(expected)
130
+ end
131
+ end
132
+
121
133
  context 'line breaks' do
122
134
  let(:source) { "@~ @~" }
123
135
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Roper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-26 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -107,12 +107,14 @@ files:
107
107
  - lib/mastalk/snippets/action_item.html.erb
108
108
  - lib/mastalk/snippets/add_action.html.erb
109
109
  - lib/mastalk/snippets/break.html.erb
110
+ - lib/mastalk/snippets/bullet_points.html.erb
110
111
  - lib/mastalk/snippets/callout.html.erb
111
112
  - lib/mastalk/snippets/collabsible_section.html.erb
112
113
  - lib/mastalk/snippets/collapsable.html.erb
113
114
  - lib/mastalk/snippets/collapsible_header.html.erb
114
115
  - lib/mastalk/snippets/how.html.erb
115
116
  - lib/mastalk/snippets/no.html.erb
117
+ - lib/mastalk/snippets/points.html.erb
116
118
  - lib/mastalk/snippets/ticks.html.erb
117
119
  - lib/mastalk/snippets/video.html.erb
118
120
  - lib/mastalk/snippets/why.html.erb
@@ -145,4 +147,3 @@ signing_key:
145
147
  specification_version: 4
146
148
  summary: mastalk
147
149
  test_files: []
148
- has_rdoc: