Might be an issue on our end as it’s working on https://markdown-it.github.io
Not sure we want to spend time debugging such an edgy case, what do you think @sam ?
Also here is a reduced repro:
<kbd><small>[`A`](B)</small></kbd>
<kbd><small>[A](B)</small></kbd>