- try:
- return markdown.markdown(open(file, "r").read(), extensions=["tables"])
- except FileNotFoundError:
- raise Exception(
- f'lightcards: "{file}": No such file or directory'
- ) from None
+ outp = ""
+ for i in file:
+ try:
+ outp += markdown.markdown(
+ open(i, "r").read(), extensions=["tables"]
+ )
+ except FileNotFoundError:
+ raise Exception(
+ f'lightcards: "{i}": No such file or directory'
+ ) from None
+
+ return outp