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:
parent
eeb599e5ed
commit
60a1c74921
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue