DCsunset / pandoc-include

A pandoc filter to allow file and header inclusion
MIT License
63 stars 14 forks source link

feature: increment section levels of included file #20

Closed russkel closed 3 years ago

russkel commented 3 years ago

Thanks for your filter, it works really well. I needed this feature, and it took the whole of 2 minutes to implement, so credit to you for the simple organisation of the project.

Does what says on the tin, adds a config value like so:

$include`incrementSection=1` include.md

Which then increments all the headings of the included elements as per the config value. I generate a number of include files and I didn't want to jig the generator for the individual files so this made the most sense.

Would be happy to get this merged.

russkel commented 3 years ago

@DCsunset ping

DCsunset commented 3 years ago

Sorry for the late reply (I've been very busy recently).

Thanks for your contribution! It's a nice feature to add.

russkel commented 3 years ago

Sorry for the late reply (I've been very busy recently).

No worries at all, likewise. Thanks for merging @DCsunset.