TOC entries for impls contain special characters like `impl x of <A> for [fn@]` etc and the links are not sanitized correctly per pandoc's rules.