Sha256: 1ccf4bdc15f57547fd269ceb400d69f523984e75e21d2833a0f6f86d76f2b91d
Contents?: true
Size: 899 Bytes
Versions: 3
Compression:
Stored size: 899 Bytes
Contents
module Coradoc module Parser module Asciidoc module Paragraph def paragraph_text_line (asciidoc_char_with_id.absent? | text_id ) >> literal_space? >> (text_formatted.as(:text) # >> ) | term | term2 end def paragraph ( block_id.maybe >> block_title.maybe >> (attribute_list >> newline).maybe >> (paragraph_text_line.repeat(1,1) >> any.absent? | (paragraph_text_line >> newline_single.as(:line_break)).repeat(1) >> (paragraph_text_line.repeat(1,1)).repeat(0,1) ).as(:lines) >> newline.repeat(0) ).as(:paragraph) end def paragraph_attributes str("[") >> keyword.as(:key) >> str("=") >> word.as(:value) >> str("]") >> newline end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coradoc-1.1.3 | lib/coradoc/parser/asciidoc/paragraph.rb |
coradoc-1.1.2 | lib/coradoc/parser/asciidoc/paragraph.rb |
coradoc-1.1.1 | lib/coradoc/parser/asciidoc/paragraph.rb |