Skip to content

vs code - show preview & compile options not working #147

Description

@krish777

When d2 source contains d2-config section, the style and layout mentioned in d2 file are not working when d2 preview option or d2 compile to SVG is selected from vscode menu. It works only when the compilation is done outside vs code editor.

vars: {
d2-config: {
theme-id: 4
dark-theme-id: 300
layout-engine: elk
}
}
1
2
3
4
5

  • -> a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions