VSCode Markdown Chess Viewer
Display chess boards in vscode markdown viewer.
Create an empty chess board by writing a chess code block:
On an empty board you can move pieces and draw arrows/squares and copy it back to the chess code block, as shown in the GIF.
You can supply an initial FEN, and arrows/squares to mark on the board, and a board size:
fen: r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 0 1
arrows: f3->e5 b5->c6
squares: g5 f7
Full list of supported properties:
||The initial position
||Any valid FEN string
||Series of arrows to draw
||Series of squares to mark
||Which side to view the board
||white / black
||Board width size in px (150-600)
||Force to enable/disable movement
||true / false
||false if FEN supplied
||Force to enable/disable drawing
||true / false
||false if arrows or sqaures supplied
||Highlight last move
Multiple board themes and piece sets are supported. Currently the extension has limited resources available, because they already increase the extension's size significantly.
You can change themes in the extension's settings, or via the
Markdown: Open Chess Settings command.
This project is based on the Chessground and Chessops libraries by lichess in order to render the chess board and play moves, so I had to use the GPL-3.0 license for this project too.
- [ ] Point to the right markdown text when clicking on chess board
- [ ] Support jpg/png board backgrounds
- [ ] Support 3d pieces
vscode-markdown-chess is developed on GitHub at eronne/vscode-mardown-chess. Feel free to add PRs, issues and feature request on the issues page.