jekyll-diagrams 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/diagrams/graphviz.rb +5 -5
- data/lib/jekyll/diagrams/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d32c6cbcbb135c9087be7ee389675976e51cb3fe
|
4
|
+
data.tar.gz: 23d4b88d30a31fb44c74174bef69546bd863ca41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eca0145e75bca62df25765e2c7db2045665dd83dd6787ed931d604c69ceee70bd35968820b4328fd1e65bbd1e47fccfd22e37509d784c9fc263c251348259a1
|
7
|
+
data.tar.gz: 1acbbc864c870110b33a7cfbd07f83d9c6d63328d5361035618ceb62b5b90e21ed8bbf4add7cceca0123a6ccad9dd3d35643fd8a5df253e798417d97958b6ed8
|
@@ -21,15 +21,15 @@ module Jekyll
|
|
21
21
|
|
22
22
|
def render_diagram(code)
|
23
23
|
code = case @tag_name
|
24
|
-
|
24
|
+
when 'graphviz'
|
25
25
|
code
|
26
|
-
|
26
|
+
when 'graph'
|
27
27
|
"graph {\n#{code}\n}"
|
28
|
-
|
28
|
+
when 'digraph'
|
29
29
|
"digraph {\n#{code}\n}"
|
30
|
-
|
30
|
+
else
|
31
31
|
raise "unknown liquid tag name: #{@tag_name}"
|
32
|
-
|
32
|
+
end
|
33
33
|
|
34
34
|
@renderer.render(code, @engine)
|
35
35
|
end
|