# hexo-tag-diagram

> `hexo-tag-diagram` is a convenient plugin for generating SVG diagram in when we writing in Hexo.

Latest version **0.2.1** (published 2016-05-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install hexo-tag-diagram
pnpm add hexo-tag-diagram
yarn add hexo-tag-diagram
bun add hexo-tag-diagram
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2016-05-21 |
| First published | 2016-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mailto1587 |
| Maintainers | mailto1587 |
| Keywords | hexo, tag, diagram |

## Links

- npm: https://www.npmjs.com/package/hexo-tag-diagram
- Repository: https://github.com/mailto1587/hexo-tag-diagram
- Homepage: https://github.com/mailto1587/hexo-tag-diagram#readme
- Issues: https://github.com/mailto1587/hexo-tag-diagram/issues
- npm.io page: https://npm.io/package/hexo-tag-diagram

## Dependencies (1)

- [hexo-util](https://npm.io/package/hexo-util.md) ^0.5.3

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-05-21
- 0.2.0 — 2016-05-21
- 0.1.2 — 2016-05-21
- 0.1.1 — 2016-05-21
- 0.1.0 — 2016-05-21

## README

# hexo-tag-diagram

`hexo-tag-diagram` is a convenient plugin for generating SVG diagram in when we writing in Hexo.

## Installation

```bash
npm install --save hexo-tag-diagram
```

## System Requirements

* [Hexo](https://hexo.io/)
* [Graphviz](http://www.graphviz.org/)

## Usage

In post:

```markdown
{% diagram "title of diagram" [engine] %}

// Definition of diagram

{% enddiagram %}
```

The diagram tag works accept a `title` argument and an optional argument indicates which engine to use for drawing, default is [dot](http://www.graphviz.org/doc/info/lang.html).

A simple snippet that just work:

```markdown
{% diagram "Hello, diagram!" %}

digraph {
    A -> B;
}

{% enddiagram %}
```

## SVG versus PNG (or JPG etc.)

We choose SVG as generated diagram's format, since it can be embbed in HTML directly, and the most important, can be customized with CSS easily, or enable some interactive features through JavaScript.

That is the visitors must explore our websites with [a browser that supports SVG feature](http://caniuse.com/#feat=svg). Vistors woun't be in trouble if we use PNG or JPG format but, fortunately, most of browsers on this planet support SVG.

---
_Source: https://npm.io/package/hexo-tag-diagram · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
