kdheepak / panvimdoc

Write documentation in pandoc markdown. Generate documentation in vimdoc.
https://kdheepak.com/panvimdoc
MIT License
263 stars 15 forks source link

fix:Add links heading to ToC #63

Closed MeanderingProgrammer closed 7 months ago

MeanderingProgrammer commented 7 months ago

Details

Problem outlined in: https://github.com/kdheepak/panvimdoc/issues/62

Link header is added to toc table, however this happens after the ToC is rendered so it is effectively ignored.

Change rendering order so links are added before the ToC.

Updated a unit test case to catch this.

kdheepak commented 7 months ago

Thanks for making a PR for the fix! It looks good to me!