CrossNox / m2r2

Markdown to reStructuredText converter
https://crossnox.github.io/m2r2
MIT License
107 stars 26 forks source link

Adding support for start-after and end-before options #31

Open embray opened 3 years ago

embray commented 3 years ago

The regular reST include directive has support for :start-after: and :end-before: options allowing specific to text to search for for setting the start/end points of the inclusion.

This is extremely useful since it allows including, say, only specific sections of a markdown file, without always having to chase the exact line numbers. Happy to make a PR since I see you're looking for help on this package.

MaGering commented 1 year ago

That would be very useful indeed! Is there any news on this? @embray, @dmaljovec, @UncleGoogle I think you've already proposed a solution in https://github.com/miyakogi/m2r/pull/42 @dmaljovec?