diff --git a/example/two/slidesA.md b/example/two/slidesA.md index dca212f7d..05beaa269 100644 --- a/example/two/slidesA.md +++ b/example/two/slidesA.md @@ -16,8 +16,7 @@ get '/' do 'Hello world!' end - end - + end !SLIDE execute @@ -25,3 +24,15 @@ @@@ javaScript result = 3 + 3; + +!SLIDE + +# Write your own slides # + +Using [markdown](http://daringfireball.net/projects/markdown/) + + !SLIDE + + # Title of the slide # + + How easy is this? diff --git a/lib/showoff.rb b/lib/showoff.rb index 1e9fb908f..5a9c5673b 100644 --- a/lib/showoff.rb +++ b/lib/showoff.rb @@ -46,7 +46,7 @@ def js_files end def process_markdown(name, content) - slides = content.split('!SLIDE') + slides = content.split(/^!SLIDE/) slides.delete('') final = '' if slides.size > 1 diff --git a/views/index.erb b/views/index.erb index bd0a60d70..207ba843b 100644 --- a/views/index.erb +++ b/views/index.erb @@ -26,7 +26,7 @@ <% end %> <% js_files.each do |js_file| %> - + <% end %>