Example of existing projects: - https://github.com/aslushnikov/table-of-contents-preprocessor - https://github.com/jonschlinkert/marked-toc