md2key 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/md2key/markdown.rb +4 -1
- data/lib/md2key/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 715e0b41ecbfdbb4b7bd47471b3869361fdf12a4
|
4
|
+
data.tar.gz: 4aa12b0da58a5571dba5bbf57844d5b6b536274c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b8459ae62e7adeaf6f57757d0d1420ac18106a0d13320ef581d454d16cdb767c547ae22b1d7f49b5bf9c4f2664c78d2f14d43877b2bf735ac0d823d7a9d7d07
|
7
|
+
data.tar.gz: 00219c993468952728073684d4051b2d41eae58594255fba50500ba17da89234debdf49fb068a38f3d468a54cb9ec009edeff2ef3e273eb2e5feaa8c62a7280e
|
data/lib/md2key/markdown.rb
CHANGED
@@ -18,9 +18,10 @@ module Md2key
|
|
18
18
|
line = line.strip
|
19
19
|
case line
|
20
20
|
when /^--+$/
|
21
|
+
# noop
|
22
|
+
when /^# *(.+)$/
|
21
23
|
slides << slide
|
22
24
|
slide = Slide.new
|
23
|
-
when /^# *(.+)$/
|
24
25
|
slide.title = $1
|
25
26
|
when /^- *(.+)$/
|
26
27
|
slide.lines << $1
|
@@ -29,6 +30,8 @@ module Md2key
|
|
29
30
|
end
|
30
31
|
end
|
31
32
|
slides << slide
|
33
|
+
slides.shift unless slides.empty?
|
34
|
+
slides
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|
data/lib/md2key/version.rb
CHANGED