cmacmackin / markdown-include

Provides syntax for Python-Markdown which allows for the inclusion of the contents of other Markdown documents.
GNU General Public License v3.0
104 stars 41 forks source link

Include file relative to processed markdown file #7

Open kamar535 opened 8 years ago

kamar535 commented 8 years ago

It would be great if there was an option to include a file relative to the markdown file being processed.

For example if we have the following directory structure.

.
├── a.md
└── sub
    ├── b.md
    └── c.md

To include c.md from b.md someting simlar to {!./c.md!} could be used. To include a.md from b.md something similar to {!../a.md!} could be used.