asciidoctor / brackets-asciidoc-preview

Live Preview of AsciiDoc for Adobe Brackets
MIT License
51 stars 16 forks source link

How to display blockdiag in asciidoc preview? #42

Open siddjain opened 4 years ago

siddjain commented 4 years ago

Hello

I have a blockdiagram (http://blockdiag.com/en/blockdiag/examples.html#simple-diagram) in my asciidoc. Example

blockdiag { A -> B -> C -> D; A -> E -> F -> G; }

But this does not render in the asciidoc preview. How can I make it render in asciidoc preview? As I have lot of diagrams, I would like them to see in the preview before converting to PDF. I am able to see the diagram in PDF so I have the blockdiag dependencies installed. Thanks

siddjain commented 4 years ago
$ ls ~/Library/Application\ Support/Brackets/extensions/user
nerk.asciidoc-preview   spell-check
nerk commented 4 years ago

@siddjain Unortunately, blockdiag is currently not supported in the preview. I'll look into it when I get some spare time. In the meantime, you could use something like http://interactive.blockdiag.com/ and some copy/paste.

The brackets preview is written in JavaScript. Since most of the diagram software is implemented in Java, it needs an online-service (or locally running service providing a remote API) to actually perform the conversion.