Sha256: 3a463b25fb591f79aa055596a9d827d1c67de2aa3e82f19f7e92353943143419
Contents?: true
Size: 570 Bytes
Versions: 10
Compression:
Stored size: 570 Bytes
Contents
module Appium class Lint ### # h4, h5, and h6 should not be used. # Slate works best with h1, h2, or h3 class H456Invalid < Base def call input.lines.each_with_index do |line, index| h456_invalid = !!line.match(/^\#{4,6}[^#]/) warn index if h456_invalid end warnings end FAIL = 'h4, h5, h6 should not be used. Use h1, h2 or h3.' def fail FAIL end end end end =begin > md.render("##### ok") => "<h5>ok</h5>\n" > md.render(" ##### ok") => "<p>##### ok</p>\n" =end
Version data entries
10 entries across 10 versions & 1 rubygems