process_markdown_file_with_basedir

Function process_markdown_file_with_basedir 

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

Process markdown content from a file with custom base directory.

This function reads a markdown file and processes it with the specified configuration and base directory for resolving includes.

§Arguments

  • file_path - Path to the markdown file
  • base_dir - Base directory for resolving relative includes
  • 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.