reuse TreeUtil.extractText to build link id
produce header ids in Markdown in non-strict mode

as a side effect this turns the 11 tests which had to be temporarily red
 green again