toMarkdown method

String toMarkdown()

Convert the entire page content to Markdown format

Implementation

String toMarkdown() {
  if (_htmlContent == null) {
    throw ScraperNotInitializedException();
  }

  return ContentFormatter.toMarkdown(_htmlContent!);
}