PGN is just a format to communicate the games. So pgn pretty-printing is at the same level as pretty printing json. Nothing wrong with that, but at some point you might want to publish a game with diagrams variations, ....
For that purpose, you can use Latex (yes, I know, not everybody's cup of tea)
I really like the JS preview/rendering plugins for fenced code blocks in Markdown. For example Mermaid, which is supported by many Markdown renderers or IDEs. [1]
It would be fun to have something like this for chess notation, that interactively renders the last position with forward and back buttons.
Thanks for the idea, I'd not considered it. LaTex may have some use, I'll take a look. Indeed, probably the best solution to publish a game with diagrams.
For personal notes, I would also consider embedding PGN into Markdown. Sadly, PGN rendering in Markdown isn't supported yet, as far as I know (something like Mermaid would be awesome).
For that purpose, you can use Latex (yes, I know, not everybody's cup of tea)
https://www.overleaf.com/learn/latex/Chess_notation