amyreese / markdown-pp

Preprocessor for Markdown files to generate a table of contents and other documentation needs
MIT License
309 stars 68 forks source link

Fix recursive imports globs and relative paths #63

Closed Frank-Krick closed 5 years ago

Frank-Krick commented 6 years ago

Move adding of pwd to the function include so that glob.glob does not get confused with subdirectories anymore.

Additionally, if glob.glob does not return anything include now return an empty string so that it does not remove lines that are expected to be there by later executed code.

Implemented test cases for both error conditions.

Fixes #62


This change is Reviewable

amyreese commented 5 years ago

Thanks for the fix – sorry it took so long to merge. 😅

Frank-Krick commented 5 years ago

You're welcome