parseLineList method

List<Node> parseLineList(
  1. List<Line> lines, {
  2. int offset = 0,
})

Parses the given lines of Line to a series of AST nodes.

Implementation

List<Node> parseLineList(List<Line> lines, {int offset = 0}) {
  final nodes = getBlockParser(lines, offset: offset).parseLines();
  _parseInlineContent(nodes);
  // Do filter after parsing inline as we need ref count.
  return _filterFootnotes(nodes);
}