forked from filipg/aitech-eks-pub
14 lines
333 B
Python
14 lines
333 B
Python
import sys
|
|
|
|
from bs4 import BeautifulSoup
|
|
from markdown import markdown
|
|
|
|
with open(sys.argv[1]) as f_in, open(sys.argv[2],'w') as f_out:
|
|
for i, line in enumerate(f_in):
|
|
if i in (1,2):
|
|
continue
|
|
if line[:2] == "# " and line[:5] != "# In[":
|
|
text = line[:2]
|
|
f_out.write(line[2:])
|
|
|