feat: getting the album tracklist
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:
@@ -37,11 +37,19 @@ class FormattedText:
|
||||
@property
|
||||
def markdown(self) -> str:
|
||||
return md(self.html).strip()
|
||||
|
||||
@markdown.setter
|
||||
def markdown(self, value: str) -> None:
|
||||
self.html = mistune.markdown(value)
|
||||
|
||||
@property
|
||||
def plain(self) -> str:
|
||||
md = self.markdown
|
||||
return md.replace("\n\n", "\n")
|
||||
|
||||
@plain.setter
|
||||
def plain(self, value: str) -> None:
|
||||
self.html = mistune.markdown(plain_to_markdown(value))
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.markdown
|
||||
|
||||
Reference in New Issue
Block a user