Hacker News new | past | comments | ask | show | jobs | submit login

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)

https://www.overleaf.com/learn/latex/Chess_notation




This looks a bit cumbersome to write to me.

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.

Static PDFs are mostly a thing of the past.

[1]: https://github.blog/developer-skills/github/include-diagrams...


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).




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: