From d1ceb9cf3bb505b5e1a8023930ddd21e99a05f7b Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Mon, 16 Jan 2023 11:01:34 -0500 Subject: HighlightedCode: Handle everything that pygments can handle --- browset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'browset.py') diff --git a/browset.py b/browset.py index ebcc330..f932996 100755 --- a/browset.py +++ b/browset.py @@ -88,7 +88,7 @@ class Browset(App): if "text/gemini" in mime: content = Gemtext(fp=fp, id="content") - elif mime in mimetolexer: + elif HighlightedCode.can_handle_mime(mime): content = HighlightedCode(fp=fp, id="content", mime=mime) else: content = Plaintext(fp=fp, id="content") -- cgit 1.4.1