From f036a437cb96ea0e54a802225ae5ab6337153ed4 Mon Sep 17 00:00:00 2001 From: bobzomer <33620760+bobzomer@users.noreply.github.com> Date: Wed, 1 Feb 2023 13:13:19 +0100 Subject: [PATCH] Add D2 language support (#405) resolves #402 Co-authored-by: Bruno Obsomer --- README.md | 1 + dist/browser/asciidoctor-kroki.js | 1 + ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb | 1 + src/asciidoctor-kroki.js | 1 + 4 files changed, 4 insertions(+) diff --git a/README.md b/README.md index bcc5914..e9bf846 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,7 @@ Kroki currently supports the following diagram libraries: * [BPMN](https://github.com/bpmn-io/bpmn-js): `bpmn` * [Bytefield](https://github.com/Deep-Symmetry/bytefield-svg/): `bytefield` * [C4 (PlantUML)](https://github.com/RicardoNiepel/C4-PlantUML): `c4plantuml` +* [D2](https://d2lang.com/tour/intro/): `d2` * [DBML](https://www.dbml.org/home/): `dbml` * [Ditaa](http://ditaa.sourceforge.net): `ditaa` * [ERD](https://github.com/BurntSushi/erd): `erd` diff --git a/dist/browser/asciidoctor-kroki.js b/dist/browser/asciidoctor-kroki.js index d82fd0f..ac276b7 100644 --- a/dist/browser/asciidoctor-kroki.js +++ b/dist/browser/asciidoctor-kroki.js @@ -18508,6 +18508,7 @@ module.exports.register = function register (registry, context = {}) { 'bpmn', 'bytefield', 'c4plantuml', + 'd2', 'dbml', 'ditaa', 'erd', diff --git a/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb b/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb index 0846dde..757ae9f 100644 --- a/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb +++ b/ruby/lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb @@ -111,6 +111,7 @@ module Kroki bpmn bytefield c4plantuml + d2 dbml ditaa erd diff --git a/src/asciidoctor-kroki.js b/src/asciidoctor-kroki.js index 7ffff91..1d5b42a 100644 --- a/src/asciidoctor-kroki.js +++ b/src/asciidoctor-kroki.js @@ -224,6 +224,7 @@ module.exports.register = function register (registry, context = {}) { 'bpmn', 'bytefield', 'c4plantuml', + 'd2', 'dbml', 'ditaa', 'erd',