aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md56
1 files changed, 56 insertions, 0 deletions
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..015e375
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,56 @@
1pandoc-filter-plantuml
2======================
3
4A Pandoc AST filter rendering PlantUML code blocks into vector diagrams.
5
6This filter produces TikZ code that must then be rendered using another filter such as
7[tikz.py][tikz].
8
9
10Usage
11-----
12
13A PlantUML diagram in an example Pandoc Markdown file `example.md`:
14
15 ```puml
16 @startuml
17 Bob->Alice : hello
18 @enduml
19 ```
20
21Using the helper scripts [tikz.py][tikz] and `pandoc-filter-plantuml.sh`:
22
23 #/bin/sh
24 java -jar pandoc-filter-plantuml.jar <&0
25
26Can be rendered and included as a vector resource in a PDF by running:
27
28 % pandoc --filter=pandoc-filter-plantuml.sh \
29 --filter=tikz.py \
30 --output=example.pdf \
31 example.md
32
33Or as an image in an HTML document with the following command:
34
35 % pandoc --filter=pandoc-filter-plantuml.sh \
36 --filter=tikz.py \
37 --output=example.html \
38 example.md
39
40
41Build
42-----
43
44The project can be built using the Gradle `build` task.
45
46An autonomous jar file can be generated using the `jar` task.
47
48
49License
50-------
51
52Project released under the terms of the GNU GPL v3.
53See /license.txt
54
55
56[tikz]: https://github.com/jgm/pandocfilters/blob/master/examples/tikz.py