Determine if selection is inside of markdown code block

Is it possible to determine if a selection is inside of a code block (regardless of the language being used inside of that block) when using the markdown language?

Lezer Reference Manual, be sure not to use resolveInner because that will give you the node in the overlaid tree (i.e. the tree of the language inside the code block)

Here’s a quick example https://replit.com/@replitfaris/is-in-codeblock#index.ts

That worked like a charm, thank you so much!