Changes from pull request #4 by sigrist: https://github.com/sigrist/markdown-page-generator-plugin/commit/abbb30b85835904ce7639af258b56b60bd0975aa.