fix: resolve merge conflict in DefaultMarkdownGenerator affecting fit_markdown generation

This commit is contained in:
UncleCode
2024-11-28 12:56:31 +08:00
parent 76bea6c577
commit c2d4784810

View File

@@ -96,7 +96,6 @@ class DefaultMarkdownGenerator(MarkdownGenerationStrategy):
)
# Generate fit markdown if content filter is provided
<<<<<<< HEAD
fit_markdown: Optional[str] = ""
filtered_html: Optional[str] = ""
if content_filter or self.content_filter:
@@ -104,8 +103,6 @@ class DefaultMarkdownGenerator(MarkdownGenerationStrategy):
filtered_html = content_filter.filter_content(cleaned_html)
filtered_html = '\n'.join('<div>{}</div>'.format(s) for s in filtered_html)
fit_markdown = h.handle(filtered_html)
>>>>>>> origin/main
fit_markdown = h.handle(filtered_html)
return MarkdownGenerationResult(
raw_markdown=raw_markdown,