Sha256: 5b4bff44a8b467dff0effa2a9288d6cfb66c8397e226873cfb4030540526f3a4
Contents?: true
Size: 196 Bytes
Versions: 1
Compression:
Stored size: 196 Bytes
Contents
module Heading def parse line parse_line = line.sub(/^h([1-6])\.\s(.*)\n/){|s| "<h#$1>#$2</h#$1>\n" } return line if parse_line == nil parse_line end module_function :parse end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wparser-0.0.2 | lib/wparser/inline/heading.rb |