I returned back to using json and trying to replace chars like this:
{{ $jsonAnswer := .answer | markdownify | jsonify }}
{{ $jsonAnswer := replace $jsonAnswer "\\u003c" "<"}}
This way <
is encoded into into /<
It’s a very difficult case for me
Maybe I can use Custom output format. What do you think?