Skip to content

Commit

Permalink
Fix the markdown parsing order
Browse files Browse the repository at this point in the history
Switch markdown() and linkify() so that the image URLs do'nt
turn into HTML tags.
  • Loading branch information
Huy-Ngo committed Feb 26, 2021
1 parent 02734f8 commit 5d073d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acanban/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def test_app(self) -> AsyncIterator[Acanban]:

@app.template_filter('markdown')
def as_markdown(text: str) -> str:
html = clean(markdown(linkify(text)), markdown_tags, markdown_attrs)
html = clean(linkify(markdown(text)), markdown_tags, markdown_attrs)
return html


Expand Down

0 comments on commit 5d073d4

Please sign in to comment.