brackets-asciidoc-preview icon indicating copy to clipboard operation
brackets-asciidoc-preview copied to clipboard

How to display blockdiag in asciidoc preview?

Open siddjain opened this issue 5 years ago • 2 comments

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 avatar Dec 11 '19 21:12 siddjain

$ ls ~/Library/Application\ Support/Brackets/extensions/user
nerk.asciidoc-preview	spell-check

siddjain avatar Dec 11 '19 21:12 siddjain

@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.

nerk avatar Dec 18 '19 17:12 nerk