added support for generating label id references with an algorithm that works with pandoc-s autolabels (ie: uses "-" in place of spaces and such)