Files
Blog-_Expert/rag/markdown_converter.py

18 lines
202 B
Python

"""
markdown_converter.py
"""
from markdownify import markdownify
def html_to_markdown(html: str):
markdown = markdownify(
html,
heading_style="ATX"
)
return markdown