question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Asciidoctor-pdf with kroki extension generates error for nomnoml diagram type

See original GitHub issue

@Mogztter (Guillaume Grossetie) suggested I open an issue here.

I’m using the extension found here: https://github.com/asciidoctor/asciidoctor-intellij-plugin/blob/master/src/main/resources/kroki-extension.rb with kroki server to generate a nomnoml diagram.

Details:

Asciidoc error:

asciidoctor: WARNING: could not embed image: /tmp/image-20200611-1-16whoip; image file is an unrecognised format

Asciidoc producing the error:

[nomnoml,align="center"]
....
[Pirate|eyeCount: Int|raid();pillage()|
  [beard]--[parrot]
  [beard]-:>[foul mouth]
]

[<abstract>Marauder]<:--[Pirate]
[Pirate]- 0..7[mischief]
[jollyness]->[Pirate]
[jollyness]->[rum]
[jollyness]->[singing]
[Pirate]-> *[rum|tastiness: Int|swig()]
[Pirate]->[singing]
[singing]<->[rum]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ahus1commented, Jun 11, 2020

Hi @bobroro, hi @Mogztter - no worries; your’re both welcome to use this repo to discuss the related changes. Please let me know how I can help.

1reaction
rorokaloomcommented, Jun 11, 2020

@Mogztter Yes, that did it! While we are at it, we should also pass the float + width + height +link attributes as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

asciidoctor/asciidoctor - Gitter
@mojavelinux I'm trying to embed what I think is a svg within a pdf with asciidoctor-pdf (using kroki's nomnoml diagram type) and getting...
Read more >
Third Party Tools - Kroki Documentation
A list of third party tools, developed by the community, that rely on Kroki. Diagram it. A public service that allows you to...
Read more >
asciidoctor-pdf - npm
A PDF converter for AsciiDoc based on Asciidoctor.js. Latest version: 1.0.0-alpha.16, last published: 3 months ago.
Read more >
Asciidoctor Diagram
Asciidoctor Diagram is a set of Asciidoctor extensions that enable you to add diagrams, which you describe using plain text, to your AsciiDoc...
Read more >
asciidoctor-pdf: Documentation | Openbase
You can use the Asciidoctor Kroki extension to render diagrams in your PDF. In this example, we create a file named piracy.adoc with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found