parse_markdown_file

Function parse_markdown_file 

Source
pub fn parse_markdown_file(
    content: &str,
    file_path: &Path,
    repository: &Path,
) -> Result<Item, ParseError>
Expand description

Parses a Markdown file and extracts the item.

§Arguments

  • content - The raw file content.
  • file_path - Relative path within the repository.
  • repository - Absolute path to the repository root.

§Returns

The parsed Item, or a ParseError if parsing fails.