FIX: Improve selector for copy codeblock button (PR #9493)

Previous selector implementation was not accounting for codeblocks in nested elements, like lists.

GitHub