lib/source2md/text_helper.rb in source2md-0.0.15 vs lib/source2md/text_helper.rb in source2md-0.0.16

- old
+ new

@@ -28,7 +28,11 @@ def space_prefix_remove(text) min = text.lines.reject(&:blank?).collect { |e| e.slice(/^\s*/).size }.min text.remove(/^ {#{min}}/) end + + def data_block_exclude(text) + text.sub(/^__END__\R.*/m, "") + end end end