marcel-hofer / markdown-document

Converts markdown files to PDF documents using HTML templates.
https://marcel-hofer.github.io/markdown-document/
MIT License
3 stars 2 forks source link

Include markdown files from sub directory does not work #20

Closed HoracePGreeley closed 6 years ago

HoracePGreeley commented 6 years ago

Unfortunately, it seems not possible to include markdown documents from sub directories:

Code::

@(include .\parts\task-1.md)

Result: image

marcel-hofer commented 6 years ago

The regex used to parse this syntax does not support non-word characters. Therefore you can't use - like in the example above.

For now you can rename the file to task1.md and include it using:

@(include parts/task1.md)

This should be fixed to allow all valid filename characters.