Modified fence renderer works in preview but not in cooked post

Hey,
I am working on a plugin to return raw_html on JSON inside the fence for any post
but the issue with implementation is that it works as expected in preview mode but not on cooked post

here is the source code: GitHub - n8n-io/discourse-n8n-wf at n8n-2902-forum-plugin

help appreciated
Thanks