Skip to content

Commit

Permalink
Add to markdown using new method
Browse files Browse the repository at this point in the history
  • Loading branch information
dgunning committed Nov 20, 2024
1 parent 106a93c commit ace5f59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edgar/_filings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from rich.text import Text

from edgar._markdown import html_to_markdown, text_to_markdown
from edgar.html2markdown import to_markdown
from edgar._party import Address
from edgar.attachments import FilingHomepage, Attachment, Attachments, AttachmentServer
from edgar.core import (log, display_size, sec_edgar,
Expand Down Expand Up @@ -1137,7 +1138,7 @@ def markdown(self) -> str:
if html:
clean_html = get_clean_html(html)
if clean_html:
return html_to_markdown(clean_html)
return to_markdown(clean_html)
text_content = self.text()
return text_to_markdown(text_content)

Expand Down

0 comments on commit ace5f59

Please sign in to comment.