Sha256: eb173b0ae2013958004359d2a3cc0adec829c7fe4df6d8f320d8878258e77ea9
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
module Coradoc module Parser module Asciidoc module Admonition def admonition_type str('NOTE') | str('TIP') | str('EDITOR') | str('IMPORTANT') | str('WARNING') | str('CAUTION') | str('TODO') # requires atypical syntax for access? # | str('DANGER') # | str('SAFETY PRECAUTION') end def admonition_line admonition_type.as(:admonition_type) >> str(': ') >> ( (text.as(:text) >> line_ending.as(:line_break) ).repeat(1) ).as(:content) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems