From 2e0801f48b48e4945f7a93f868b9ab8a41fc9b8c Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Sun, 19 Feb 2023 22:05:11 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 1d5599ec8..06fc2ddbd 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -744,7 +744,7 @@ def search(): gptbox = { 'infobox': 'GPT3', 'id': 'gpt'+str(len(prompt)), - 'content': markdown.markdown(gpt,extensions=['footnotes']), + 'content': markdown.markdown( re.sub( r'\[(\d+)\](?=[^\^])', r'[^\\1]', gpt), extensions=['footnotes']), } result_container.infoboxes.append(gptbox)