TaskValidator.Parsers.MarkdownParser (TaskValidator v0.9.2)
View SourceParses Markdown content for task validation.
This module handles the core parsing of Markdown files, extracting structured data that can be validated by the TaskValidator system. It separates parsing concerns from validation logic.
Summary
Functions
Extracts reference definitions from markdown content.
Extracts tasks from markdown content.
Parses markdown content into a structured TaskList.
Validates that all reference placeholders have corresponding definitions.
Functions
Extracts reference definitions from markdown content.
Reference definitions follow the format:
{{reference-name}} or ## #{{reference-name}}
@spec extract_tasks([String.t()]) :: {:ok, [TaskValidator.Core.Task.t()]} | {:error, String.t()}
Extracts tasks from markdown content.
Looks for tasks in both "Current Tasks" and "Completed Tasks" sections.
@spec parse(String.t()) :: {:ok, TaskValidator.Core.TaskList.t()} | {:error, String.t()}
Parses markdown content into a structured TaskList.
Returns a TaskList struct containing all parsed tasks and metadata.
Validates that all reference placeholders have corresponding definitions.