parseBody static method

OkfIndexParseResult parseBody(
  1. String body
)

Parses an index body already separated from its frontmatter.

Entries outside a section are reported through issues and dropped: they carry no section to be emitted under.

Implementation

static OkfIndexParseResult parseBody(String body) {
  final scan = _scanIndexBody(body);
  return OkfIndexParseResult._(
    entries: scan.entries,
    issues: scan.issues,
    okfVersion: null,
    preservesFrontmatter: true,
  );
}