stdscr.insch(mlines, mcols+2, '2')
stdscr.insch(mlines, mcols+3, '/')
stdscr.insch(mlines, mcols+4, str(len(stack)))
+ stdscr.insstr(mlines, 1, stack[obj.getIdx()].getStar())
except Exception:
pass
elif key in ["j", "k", "KEY_UP", "KEY_DOWN"]:
idx.flip()
disp_card(stdscr, stack, headers, idx)
+ elif key in ["i", "/"]:
+ stack[idx.getIdx()].toggleStar()
+ disp_card(stdscr, stack, headers, idx)
except Exception:
pass
from bs4 import BeautifulSoup
import markdown
+from .deck import Card
+
def md2html(file):
with open(file, "r", encoding="utf-8") as input_file:
outp = []
for x in soup.find_all("tr"):
- outp.append([clean_text(y) for y in x.find_all("td")])
+ outp.append(Card([clean_text(y) for y in x.find_all("td")]))
return ([clean_text(x) for x in soup.find_all("th")],
clean_list(outp))