fix yml parsing/writing in document service

This commit is contained in:
phernandez
2025-01-03 23:59:09 -06:00
parent f4c5327889
commit eda2a30099
8 changed files with 495 additions and 151 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ from typing import List, TypeVar, Generic, Optional, Dict, Any, Tuple
from loguru import logger
from basic_memory.utils.file_utils import parse_frontmatter, ParseError, FileError
from basic_memory.utils.file_utils import parse_content_with_frontmatter, ParseError, FileError
T = TypeVar("T") # The parsed document type
@@ -62,7 +62,7 @@ class MarkdownParser(ABC, Generic[T]):
"""
try:
# Split into frontmatter and content
frontmatter, markdown = await parse_frontmatter(content)
frontmatter, markdown = await parse_content_with_frontmatter(content)
# Parse frontmatter
parsed_frontmatter = await self.parse_frontmatter(frontmatter)