mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
414d7c905f
commit
304a14363c
1 changed files with 3 additions and 1 deletions
|
@ -741,7 +741,9 @@ def search():
|
|||
for urls in url_pair.keys():
|
||||
gpt = gpt.replace(urls,url_pair[urls])
|
||||
if gpt and gpt!="":
|
||||
gpt = markdown.markdown( re.sub( r'\[(\d+)\](?=[^\^])', r'[^\\1]', gpt) , extensions=['footnotes'])
|
||||
for i in range(1,10)
|
||||
gpt.replace("["+i+"]","[^"+i+"]")
|
||||
gpt = markdown.markdown( gpt , extensions=['footnotes'])
|
||||
for urls in url_pair.keys():
|
||||
gpt = gpt.replace("#fn:"+urls.replace("https://url",""),url_pair[urls])
|
||||
gptbox = {
|
||||
|
|
Loading…
Add table
Reference in a new issue