Skip to content

Commit

Permalink
Merge pull request #473 from jeromeag/feature/diagram_tikz
Browse files Browse the repository at this point in the history
feature: add support for `tikz` diagrams
  • Loading branch information
dduportal authored Oct 8, 2024
2 parents cb92d53 + 0577d51 commit 599f604
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,18 @@ RUN apk add --no-cache \
ruby-ffi \
ruby-mathematical \
ruby-rake \
texlive \
texmf-dist-latexextra \
ttf-liberation \
ttf-dejavu \
tzdata \
unzip \
which \
font-noto-cjk

RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
pdf2svg

ARG asciidoctor_confluence_version=0.0.2
ARG asciidoctor_diagram_version=2.3.1
ARG asciidoctor_epub3_version=2.1.3
Expand Down
15 changes: 15 additions & 0 deletions tests/fixtures/sample-with-diagram.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,18 @@ A31117013206375A
....
Hello World!
....

=== TikZ
https://tikz.net/

[tikz]
....
\begin{tikzpicture}
\draw (-2,0) -- (2,0);
\filldraw [gray] (0,0) circle (2pt);
\draw (-2,-2) .. controls (0,0) .. (2,-2);
\draw (-2,2) .. controls (-1,0) and (1,0) .. (2,2);
\end{tikzpicture}
....

0 comments on commit 599f604

Please sign in to comment.