tableCellContent method

Parser<InlineNode> tableCellContent()
inherited

Implementation

Parser<InlineNode> tableCellContent() =>
    seq3(ref0(sp), ref0(tableCellItem).star(), ref0(sp)).map3((_, items, _) {
      final combined = _combineInlines(items);
      if (combined is TextNode) {
        return TextNode(
          combined.text.trim(),
          start: combined.start,
          stop: combined.stop,
        );
      }
      return combined;
    });