Differ single and multiline reactions.

If «\n» symbol (new line) if find between shortcode brackets – use pre
> code. Else use only code.