<div align="center">
  <h1>astro-d2 ✏️</h1>
  <p>Astro integration and remark plugin to transform D2 Markdown code blocks into diagrams.</p>
</div>

<div align="center">
  <a href="https://github.com/HiDeoo/astro-d2/actions/workflows/integration.yml">
    <img alt="Integration Status" src="https://github.com/HiDeoo/astro-d2/actions/workflows/integration.yml/badge.svg" />
  </a>
  <a href="https://github.com/HiDeoo/astro-d2/blob/main/LICENSE">
    <img alt="License" src="https://badgen.net/github/license/HiDeoo/astro-d2" />
  </a>
  <br />
</div>

## Getting Started

Want to get started immediately? Check out the [getting started guide](https://astro-d2.vercel.app/getting-started/).

## Features

An [Astro](https://astro.build/) integration and [remark](https://remark.js.org/) plugin to transform [D2](https://d2lang.com/) Markdown code blocks into diagrams.

Check out the [examples](https://astro-d2.vercel.app/examples/hello-world/) for previews of some diagrams you can create with D2.

## License

Licensed under the MIT License, Copyright © HiDeoo.

See [LICENSE](https://github.com/HiDeoo/astro-d2/blob/main/LICENSE) for more information.
