ignoreSyntaxAtFirstLine method

bool ignoreSyntaxAtFirstLine(
  1. BlockParser parser,
  2. BlockSyntax syntax
)

Whether not to parse the first line of each list item for the given syntax.

If false (default), ListSyntax'll parse the first line recursively. For example, - - A will be interpreted as a nested list.

You can implement it as follows so the above markdown will be parsed as a list item with the content as "- A": => parser.parentSyntax is ListSyntax && syntax is ListSyntax

Implementation

bool ignoreSyntaxAtFirstLine(BlockParser parser, BlockSyntax syntax)
=> false;