Complete the switch to mistletoe
This commit is contained in:
parent
647add2bab
commit
d93bcf6128
6 changed files with 304 additions and 219 deletions
|
@ -6,7 +6,7 @@ from typing import Any
|
|||
|
||||
import pydantic
|
||||
from bs4 import BeautifulSoup # type: ignore
|
||||
from markdown import markdown
|
||||
from mistletoe import markdown # type: ignore
|
||||
|
||||
from app import activitypub as ap
|
||||
from app.actor import LOCAL_ACTOR
|
||||
|
@ -176,7 +176,7 @@ class Object:
|
|||
|
||||
# PeerTube returns the content as markdown
|
||||
if self.ap_object.get("mediaType") == "text/markdown":
|
||||
content = markdown(content, extensions=["mdx_linkify"])
|
||||
content = markdown(content)
|
||||
|
||||
return content
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue