Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Support the asciidoctor-diagram extension #10

Open
hallvard opened this issue May 1, 2019 · 2 comments
Open

Support the asciidoctor-diagram extension #10

hallvard opened this issue May 1, 2019 · 2 comments

Comments

@hallvard
Copy link

hallvard commented May 1, 2019

Asciidoctor supports diagrams using the block syntax, e.g.
[plantuml]
....
here is the PlantUML diagram code
....
But this is not supported by the asciidoctor extension's backend.

If you install the asciidoctor-diagram extension in the docker file using "gem install asciidoctor-diagram" and use the require option (-r): -r asciidoctor-diagram in the shell call, diagram images should be generated (in the same folder as html file) and could be served by the backend.

@hallvard
Copy link
Author

hallvard commented May 1, 2019

I've verified that if I use "gem install asciidoctor" and run asciidoctor with the -r asciidoctor-diagram option in the gitpod/Theia terminal, diagrams are rendered.

@hallvard
Copy link
Author

hallvard commented May 1, 2019

Note that the rendering slows down considerably, so it may be nice to turn the -r option off, or have a button on the preview for explicitly requesting a full render with diagram.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant