lib/mdoc/processor/add_title.rb in mdoc-0.0.6 vs lib/mdoc/processor/add_title.rb in mdoc-0.0.7

- old
+ new

@@ -3,10 +3,11 @@ class AddTitle < Processor def process!(doc) title = doc.title if title unless doc.body =~ /^\s*\#*\s*#{title}/ - title = '# ' + title + "\n\n" + title = '# ' << title << "\n" + title << "{: .title .no_toc}\n\n" doc.body = title + doc.body end end end end