0%

Diagrams.net

Installation

1
npm install hexo-diagrams-net

Usage

Simple usage

1
{% diagramsnet "diagram.drawio" %}

Legacy tag name

1
{% drawio "diagram.drawio" %}

All options

From: https://www.drawio.com/doc/faq/embed-html-options

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% diagramsnet "diagram.drawio" 
highlight="#0000ff"
lightbox=false
nav=true
resize=false
page=1
toolbar="lightbox zoom layers pages"
toolbar-buttons='{"key": {"title": "CUSTOM"}}'
toolbar-nohide=false
max-height=500
auto-fit=false
auto-crop=true
check-visible-state=false
layers="0 1 2"
tooltips=false
toolbar-position=bottom
zoom=1
editable=true
allow-zoom-in=true
border=16
center=true
target=blank
move=true
title="Diagram Title"
edit=_blank
%}