feat: add pygments syntax higlighting
This commit is contained in:
parent
d084a09e5f
commit
90eafb07de
|
@ -7,4 +7,5 @@ hgchat
|
|||
openai
|
||||
googlebardpy
|
||||
markdown
|
||||
pymdown-extensions
|
||||
pymdown-extensions
|
||||
Pygments
|
|
@ -431,7 +431,7 @@ Providers: {self.enabled_providers}
|
|||
self.response = response
|
||||
|
||||
if not self.use_text_view:
|
||||
response = markdown.markdown(response, extensions=["markdown.extensions.extra", 'pymdownx.arithmatex'])
|
||||
response = markdown.markdown(response, extensions=["markdown.extensions.extra", 'pymdownx.arithmatex', 'pymdownx.highlight'])
|
||||
|
||||
TEMPLATE = """
|
||||
<html>
|
||||
|
|
Loading…
Reference in New Issue