Skip to content

Commit

Permalink
Strip all Jupyter style tags (including those that specify scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Oct 23, 2018
1 parent 309ea67 commit 3b1569a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/strip_jupyter_style.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
with open(fn, encoding='utf-8') as f: with open(fn, encoding='utf-8') as f:
html = f.read() html = f.read()


html_no_style = re.sub('<style>(.*?)</style>', html_no_style = re.sub('<style(.*?)>(.*?)</style>',
'', html, flags=re.DOTALL) '', html, flags=re.DOTALL)


print(html_no_style) print(html_no_style)

0 comments on commit 3b1569a

Please sign in to comment.