dancroak-slidedown 0.0.8.1 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/slide.rb +1 -1
- data/lib/slidedown.rb +3 -9
- metadata +1 -1
data/lib/slide.rb
CHANGED
data/lib/slidedown.rb
CHANGED
|
@@ -69,16 +69,9 @@ class SlideDown
|
|
|
69
69
|
private
|
|
70
70
|
|
|
71
71
|
def lines
|
|
72
|
-
@lines ||= @raw.split(/^!SLIDE\s*([a-z\s]*)$/)
|
|
73
|
-
.reject { |line| line.empty? }
|
|
72
|
+
@lines ||= @raw.split(/^!SLIDE\s*([a-z\s]*)$/).reject { |line| line.empty? }
|
|
74
73
|
end
|
|
75
74
|
|
|
76
|
-
def parse_snippets(slide)
|
|
77
|
-
slide.gsub!(/@@@\s([\w\s]+)\s*$/, %(<pre class="#{$1}"><code>))
|
|
78
|
-
slide.gsub!(/@@@\s*$/, %(</code></pre>))
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# These get added to the dom.
|
|
82
75
|
def stylesheets
|
|
83
76
|
Dir[Dir.pwd + '/*.stylesheets'].map { |path| File.read(path) }
|
|
84
77
|
end
|
|
@@ -92,6 +85,7 @@ class SlideDown
|
|
|
92
85
|
@raw.gsub!(/^!SLIDE\s*([a-z\s]*)$/) do |klass|
|
|
93
86
|
@classes << klass.to_s.chomp.gsub('!SLIDE', '')
|
|
94
87
|
"!SLIDE"
|
|
95
|
-
end
|
|
88
|
+
end
|
|
89
|
+
@classes
|
|
96
90
|
end
|
|
97
91
|
end
|