Did you know you can embed code blocks in HTML without escaping anything? You put them inside <script> tag with type="text/html". Then you style such tags to be visible and preserve whitespace. E.g.:
<script type="text/plain">
> hello world <- this is legal
</script>