paragraph method

Parser<ParagraphNode> paragraph()
inherited

Standard paragraph of text.

Implementation

Parser<ParagraphNode> paragraph() =>
    seq4(
      position(),
      ref0(paragraphInlines),
      seq2(ref0(sp), [ref0(newlineSequence), endOfInput()].toChoiceParser()),
      position(),
    ).map4(
      (start, content, _, stop) =>
          ParagraphNode(content, start: start, stop: stop),
    );