Sha256: 17d4fe16a91002051ab06522896549568c0ad0a4d2f1918753e14161a29879fd
Contents?: true
Size: 192 Bytes
Versions: 4
Compression:
Stored size: 192 Bytes
Contents
require 'wparser/parse' module Inlines class Heading < Parse def self.parse line @result = line.sub(/^h([1-6])\.\s(.*)\n/){|s| "<h#$1>#$2</h#$1>\n"} super end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wparser-0.1.3 | lib/wparser/inline/heading.rb |
wparser-0.1.2 | lib/wparser/inline/heading.rb |
wparser-0.1.1 | lib/wparser/inline/heading.rb |
wparser-0.1.0 | lib/wparser/inline/heading.rb |