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

Infographic Markdown Preview

liwx2000

|
55 installs
| (1) | Free
Render AntV Infographic visualizations in Markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Preview Infographic Support

VSCode Extension Version Visitors

Adds AntV Infographic diagram and visualization support to VS Code's builtin Markdown preview.

A AntV Infographic in VS Code's built-in markdown preview

Currently supports AntV Infographic version 0.1.0.

Usage

In Markdown Preview

Create infographic diagrams in markdown using infographic fenced code blocks:

```infographic
infographic list-row-simple-horizontal-arrow
data
  items
    - label Step 1
      desc Initialize
    - label Step 2
      desc Process
    - label Step 3
      desc Complete
```

You can create various types of infographics with icons and values:

```infographic
infographic list-row-horizontal-icon-arrow
data
  title Customer Growth Engine
  desc Multi-channel customer acquisition
  items
    - label Lead Generation
      value 18.6
      desc Content marketing and outreach
      icon company-021_v1_lineal
    - label Conversion
      value 12.4
      desc Lead scoring and automation
      icon antenna-bars-5_v1_lineal
    - label Retention
      value 32.1
      desc Customer success programs
      icon activities-037_v1_lineal
```

For complete syntax documentation, see the AntV Infographic Syntax Guide.

Standalone .infographic Files

You can now create standalone .infographic files! These files will open in a custom editor with a live preview panel:

  1. Create a new file with .infographic extension
  2. Write your infographic syntax directly (without code fences)
  3. The editor will show a split view with text on the left and live preview on the right
  4. Changes update automatically as you type

Interactive Code Block Editor

Edit infographic code blocks in a dedicated editor:

  1. Open a markdown file containing infographic code blocks
  2. Click the Edit icon (📝) in the gutter next to any infographic code block
  3. An interactive editor opens with:
    • Text editor on the left for editing syntax
    • Live preview on the right showing the rendered infographic
    • Apply/Revert buttons to save or discard changes
  4. Click Apply to save changes back to your markdown file

Configuration

  • infographicMarkdown.width — Width of the rendered infographic. Supports absolute values (e.g., "500") or percentages (e.g., "100%"). The default is "100%".

  • infographicMarkdown.height — Height of the rendered infographic. Supports absolute values (e.g., "400") or percentages (e.g., "100%"). The default is "100%".

  • infographicMarkdown.padding — Padding inside the infographic container. Can be a single number for uniform padding or an array of 4 numbers [top, right, bottom, left]. The default is 0.

Using custom CSS in the Markdown Preview

You can use the built-in functionality to add custom CSS. More info can be found in the markdown.styles documentation

For example, add custom styling like this:

"markdown.styles": [
    "path/to/your/custom.css"
]
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft