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 +4 -4
- data/README.md +36 -6
- data/lib/mastalk/snippets/bullet_points.html.erb +3 -0
- data/lib/mastalk/snippets/points.html.erb +3 -0
- data/mastalk.gemspec +2 -2
- data/spec/mastalk_spec.rb +12 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 829b10e0c79e8756ed7f1071e4ce601c3e0b61c1
|
4
|
+
data.tar.gz: b95ac7722329393f47d0cc950a0b8434a8ff7f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
```
|
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.
|
7
|
-
s.date = '2014-
|
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.
|
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
|
+
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:
|