feat: switched to a more readable markdown converter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import mistune
|
||||
import html2markdown
|
||||
from markdownify import markdownify as md
|
||||
|
||||
|
||||
def plain_to_markdown(plain: str) -> str:
|
||||
@@ -36,7 +36,7 @@ class FormattedText:
|
||||
|
||||
@property
|
||||
def markdown(self) -> str:
|
||||
return html2markdown.convert(self.html)
|
||||
return md(self.html)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.markdown
|
||||
|
Reference in New Issue
Block a user