Comment by Tmpod
As it is, and without the toolbar, this really reminds me of how this[0] neovim plugin renders Markdown in the terminal. One of its nice features is doing syntax highlighting inside fenced code blocks (through tree-sitter I believe).
[0]: https://github.com/MeanderingProgrammer/render-markdown.nvim