Removed highlight_hashtags from Markdown rendering in TUI

It's not working right for multiline statuses
that start with a # character
This commit is contained in:
Daniel Schwarz 2023-11-20 20:46:21 -05:00
parent eeb599e5ed
commit 60a1c74921
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
import urwid
import html2text
from toot.tui.utils import highlight_hashtags
from typing import List
try:
@ -10,7 +9,7 @@ except ImportError:
# Fallback if urwidgets are not available
def html_to_widgets(html: str) -> List[urwid.Widget]:
return [
urwid.Text(highlight_hashtags(_format_markdown(html)))
urwid.Text(_format_markdown(html))
]
def url_to_widget(url: str):