markdown-include
markdown-include copied to clipboard
More dynamic line ranges
Current line ranges can only support fixed line numbers, which means you cannot:
- get "all lines after line 5". Currently, you could use
lines=5-99999but this is not robust and raises a warning. - Include the "last 10 lines" since you do not know these line numbers
Potential fixes could use syntax like:
lines=5-ENDorlines=5-lines=-10-ENDfollowing the Python slicing syntax where negative indices count from the end