tableCellItem method

Parser<InlineNode> tableCellItem()
inherited

Implementation

Parser<InlineNode> tableCellItem() => seq2(
  [char('|'), ref0(newlineSequence)].toChoiceParser().not(),
  [
    ref0(codeSpan),
    ref0(directImage),
    ref0(directLink),
    ref0(autolink),
    ref0(strong),
    ref0(strikethrough),
    ref0(emphasis),
    ref0(escapedCharNode),
    noneOf('|\r\n*_~`[]!<\\').plusString().map((t) => TextNode(t)),
    any().map((c) => TextNode(c)),
  ].toChoiceParser(),
).map2((_, node) => node);