Skip to content

Commit

Permalink
remove auto h1 splitting
Browse files Browse the repository at this point in the history
this seems to be covered in the case of NO !slide markers by the code
above that inserts the !slide markers.  i think that is fine, plus it
was breaking even the example preso.
  • Loading branch information
schacon committed Sep 10, 2011
1 parent 2378db6 commit 5f7d2b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/showoff.rb
Expand Up @@ -130,12 +130,6 @@ def process_markdown(name, content, static=false, pdf=false)
line = lines.shift
if line =~ /^<?!SLIDE(.*)>?/
slides << (slide = Slide.new($1))
elsif line =~ /^# / && !slide.empty?
# every H1 defines a new slide, unless there's a !SLIDE before it
# todo: make this a CL option
# todo: unit test
slides << (slide = Slide.new())
slide << line
else
slide << line
end
Expand Down

0 comments on commit 5f7d2b7

Please sign in to comment.