Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display blockdiag in asciidoc preview? #42

Open
siddjain opened this issue Dec 11, 2019 · 2 comments
Open

How to display blockdiag in asciidoc preview? #42

siddjain opened this issue Dec 11, 2019 · 2 comments

Comments

@siddjain
Copy link

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
Copy link
Author

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

@nerk
Copy link
Member

nerk commented Dec 18, 2019

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

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

No branches or pull requests

2 participants