Issue with Code Blocks in antsibull-docs

Hi,

I have a question about code blocks in antsibull.

I use antsibull-docs to create documentation from my roles. In antsibull-docs, I use C() to mark a code block. When I want to write my_function() in the code block with C(my_function()), the code block in the generated documentation looks like this:

my_function( 

It seems that the parser detects only the next “)” as the end of the code block.

Does anyone have an idea how to solve this behavior?

Thanks in advance!