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

Support multiple includes on one line #11

Closed erilot closed 2 years ago

erilot commented 7 years ago

I've got a potential use-case that populates a requirements table using includes, like this:

Product Operating System Cloud Environments Datacenter Environments
Product X {! ./prod-x-os.md !} {! ./prod-x-cloud.md !} {! ./prod-x-dc.md !}
Product Y {! ./prod-y-os.md !} {! ./prod-y-cloud.md !} {! ./prod-y-dc.md !}

markdown-include only matches first include on each line, so the above scenario doesn't work. In fact, in this example scenario, everything from the second include onward is actually lost.

How do you feel about supporting multiple matches per line?

sander76 commented 5 years ago

@cmacmackin Is this project alive ? I'd like to take a shot at this issue as I'd like to see it solved. However, before I do, I'd like to know if you're willing to do PR's and new pypi releases.

cmacmackin commented 5 years ago

@sander76 Sorry for the long silence on this project. This project is not one I want to devote a huge ammount of time to, but if you put together a PR then I'll be happy to review it and make a new PyPI release.

ZedThree commented 2 years ago

Added in #27