markdown-include icon indicating copy to clipboard operation
markdown-include copied to clipboard

Support multiple includes on one line

Open erilot opened this issue 8 years ago • 2 comments

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?

erilot avatar Apr 24 '17 20:04 erilot

@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.

sander76 avatar Jan 25 '19 13:01 sander76

@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.

cmacmackin avatar Feb 07 '19 14:02 cmacmackin

Added in #27

ZedThree avatar Nov 23 '22 15:11 ZedThree