atxHeadingItem method
Implementation
Parser<InlineNode> atxHeadingItem() => seq2(
[
ref0(newlineSequence),
seq3(
ref0(sp),
pattern('#').plus(),
seq2(ref0(sp), [ref0(newlineSequence), endOfInput()].toChoiceParser()),
),
].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);