process_markdown_file

Function process_markdown_file 

Source
pub fn process_markdown_file(
    file_path: &Path,
    preset: ProcessorPreset,
) -> Result<MarkdownResult, String>
Expand description

Process markdown content from a file with error recovery.

This function reads a markdown file and processes it with the specified configuration, handling both file I/O and processing errors.

§Arguments

  • file_path - Path to the markdown file
  • preset - The processor preset to use

§Returns

A Result containing the MarkdownResult or an error message

§Errors

Returns an error if the file cannot be read.