AntV Infographic Markdown Preview brings syntax highlighting and live Markdown preview for AntV Infographic to VS Code and Cursor. It supports fenced infographic code blocks, standalone .infographic files, and a sidebar visual editor with export.
Features
Markdown: Recognizes fenced code blocks with language infographic.
Live preview: Renders SVG in the Markdown preview via @antv/infographic.
Syntax highlighting: Infographic DSL in fences and .infographic files.
Standalone .infographic files: Custom explorer icon; opening a file can open the Infographic Editor Webview in the sidebar for visual editing, preview, and image export.
Local workflow: No external service—write and preview inside the editor.
```infographic
infographic list-row-simple-horizontal-arrow
data
lists
- label Step 1
desc Start
- label Step 2
desc In Progress
```
Save and open Markdown Preview to see the result.
Standalone .infographic files
Save your DSL as a file with the .infographic extension. It shows an AntV icon in the explorer; when opened in the editor, the extension opens the Infographic Editor Webview in the sidebar automatically. Close the sidebar panel if you only need plain text editing.