Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SGF Markdown PreviewNew to Visual Studio Code? Get it now.
SGF Markdown Preview

SGF Markdown Preview

Andre Barroso

|
1 install
| (0) | Free
Renders SGF code blocks as Go boards in Markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SGF Markdown Preview

SGF Markdown Preview is a Visual Studio Code extension that renders Smart Game Format (SGF) code blocks as interactive Go boards directly within the Markdown preview. It uses WGo.js for rendering and playback.

Features

  • Interactive Go Boards: Renders SGF content as playable boards.
  • Markdown Integration: Seamlessly integrates with standard Markdown previews using the sgf language identifier.
  • Playback Controls: Navigate through moves using the built-in player controls.

Usage

To render a Go board, simply create a code block in your Markdown file using the sgf language identifier and paste your SGF content inside.

Example

```sgf
(;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[0.00]
PW[White]PB[Black]
;B[pd];W[dd];B[pq];W[dp];B[qk];W[mp];B[no];W[mo];B[nn];W[mn]
;B[nm];W[mm];B[nl];W[ml];B[nk];W[mk];B[nj];W[mj];B[ni];W[mi]
;B[nh];W[mh];B[ng];W[mg];B[nf];W[mf];B[ne];W[me];B[nd];W[md]
;B[nc];W[mc];B[nb];W[mb];B[na];W[ma];B[oa];W[la];B[ob];W[lb]
;B[pc];W[kc];B[qc];W[jc];B[rc];W[ic];B[sc];W[hc];B[tc];W[gc]
)
```

Requirements

  • Visual Studio Code 1.96.0 or newer.

Extension Settings

Currently, this extension does not contribute any specific settings. It uses the default WGo.js player configuration.

Known Issues

  • Large SGF files may impact preview performance.

Release Notes

0.0.1

  • Initial release.
  • Basic SGF rendering support in Markdown preview.

License

This project is licensed under the MIT License - see the LICENSE file for details.

This extension bundles WGo.js, which is also licensed under the MIT License. See THIRD_PARTY_NOTICES.md for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft