Allow code highlight for notes

This commit is contained in:
Thomas Sileo 2022-07-04 19:43:37 +02:00
parent 5f34c2aee6
commit d18bf7c7d5
3 changed files with 98 additions and 2 deletions

View file

@ -88,6 +88,6 @@ async def markdownify(
# Handle custom emoji
tags.extend(emoji.tags(content))
content = markdown(content, extensions=["mdx_linkify"])
content = markdown(content, extensions=["mdx_linkify", "fenced_code", "codehilite"])
return content, tags, mentioned_actors