Omnibus commited on
Commit
12edcd9
·
verified ·
1 Parent(s): 20f4295

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -551,8 +551,9 @@ def create_image(url):
551
  #out.append("HTML fragments: ")
552
  #q=("a","p","span","content","article")
553
  out=[]
554
- for p in soup.find_all("pre, {'class': 'mermaid'}"):
555
- out.append(p.find('svg'))
 
556
  print(out)
557
  #out.append(p.string)
558
  with open("tmp.svg","w") as svg:
 
551
  #out.append("HTML fragments: ")
552
  #q=("a","p","span","content","article")
553
  out=[]
554
+ for b in soup.find_all("div"):
555
+ for p in b.find_all("pre, {'class': 'mermaid'}"):
556
+ out.append(p.find('svg'))
557
  print(out)
558
  #out.append(p.string)
559
  with open("tmp.svg","w") as svg: