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.

When opening the asciidoc in a browser via the embedded server, interactive SVG images are not found

See original GitHub issue

The asciidoc plugin offers the ability to open the rendered document in a browser, which is working quite fine. But in some cases there’s some 404s, e.g. when working with SVG images.

The following snippets are fine

.30s profile `itimer` event
image::app-2511384363-8tpw5-itimer.svg[itimer,300,opts="inline"]

In this case the SVG is within the document.

.30s profile `itimer` event
image::app-2511384363-8tpw5-itimer.svg[itimer,300]

In this case the image URL is http://localhost:63342/ead61b63-b0a6-4ff2-a49a-86be75ccfd1a/image?file=%2FUsers%2Fbric3%2Fgit-repo%2Fsrc%2Fdocs%2Fasciidoc%2Fdev%2Fapp-2511384363-8tpw5-alloc.svg&mac=DrYm01qtCSBmxLkcprIyL5jrDvOAU6FuXypDawW9zNU=&hash=4175a2f55309ecf14ff106efc6622149

Screen Shot 2019-10-29 at 12 24 41

What does not work :

But when the SVG has the interactive option, then the SVG is not found

.30s profile `itimer` event
image::app-2511384363-8tpw5-itimer.svg[itimer,300,opts="inline"]

Screen Shot 2019-10-29 at 12 25 46

And in this case too, the linked image is not found

.30s profile `itimer` event
[link=app-2511384363-8tpw5-itimer.svg]
image::app-2511384363-8tpw5-itimer-small.png[itimer,role="right"]

This generated link : http://localhost:63342/ead61b63-b0a6-4ff2-a49a-86be75ccfd1a/app-2511384363-8tpw5-itimer.svg


AsciiDoc Plugin Version: 0.30.14 IDE Name and Version: 2019.3 EAP

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ahus1commented, Oct 30, 2019

I’ve published pre-release 0.30.15. Please comment if this works for you. The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

1reaction
ahus1commented, Oct 30, 2019

I’ll have a look how to make link=… work. I already have an idea how to do that.

I am not sure what the SVG interactive option is, I’m probably not very into SVGs. Can you please explain and provide an example file that is not working (I assume this is something within the SVG)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG Images - Asciidoctor Docs
When using the interactive option, you can specify a fallback image using the fallback attribute. The fallback image is used if the browser...
Read more >
AsciiDoc - GitLab Docs
GitLab uses the Asciidoctor gem to convert AsciiDoc content to HTML5. Consult the Asciidoctor User Manual for a complete Asciidoctor reference.
Read more >
AsciiDoc
AsciiDoc is a plain text markup language for writing technical content. It's packed with semantic elements and equipped with features to modularize and ......
Read more >
Asciidoctor User Manual
Asciidoctor uses a set of built-in ERB templates to generate HTML 5 and DocBook output that is structurally equivalent to what AsciiDoc produces....
Read more >
Sharing Results with "normal" people - KNIME Forum
c) Using the “normal” Bar Chart / Line Chart nodes in Knime. Nice, but how can people see them without Knime? d) Export...
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