m2r2 icon indicating copy to clipboard operation
m2r2 copied to clipboard

Adding support for start-after and end-before options

Open embray opened this issue 4 years ago • 1 comments

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.

embray avatar Jul 09 '21 15:07 embray

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?

MaGering avatar Mar 06 '23 15:03 MaGering