gregzuro / obsidian-kroki

MIT License
47 stars 27 forks source link

Add D2 support #18

Closed DarkOnion0 closed 8 months ago

yancyknight commented 10 months ago

For anyone who happens to find this before the PR is merged, you can manually add objects in your .obsidian/plugins/obsidian-kroki/data.json file to make any language supported by Kroki work.

{
  "diagramTypes": [
    // Default settings show up here
    {
      "prettyName": "D2",
      "krokiBlockName": "d2",
      "obsidianBlockName": "d2",
      "description": "",
      "url": "https://github.com/terrastruct/d2",
      "enabled": true,
      "toggle": null
    },
    {
      "prettyName": "DBML",
      "krokiBlockName": "dbml",
      "obsidianBlockName": "dbml",
      "description": "",
      "url": "https://github.com/holistics/dbml",
      "enabled": true,
      "toggle": null
    }
  ]
}