Query Codeblocks in MarkdownRenderer.renderMarkdown

When trying to renderMarkdown that contains a query codeblock, it fails to actually render the query and instead renders the query codeblock as a normal codeblock, without the query results. Is there any way I can actually render the query result inside renderMarkdown?