Open stefanpaal opened 6 years ago
Hello, I don't reproduce your issue.
Block images and inline images are both supported.
I recommend to you to update:
asciidoc-preview
package (current is 2.11)language-asciidoc
package (current is 1.11)Ah, you are right. I missed something in my issue description above. Actually, I have a space in the file name between "My" and "Image", meaning My Image.png
. After poking a bit, I realized that block images are basically supported but not for file names containing a space. Somehow the parsing of the file name fails. If I use the same file name (with space) for an inline image, it works. As a workaround, I now use underscores instead of spaces.
Thank you for the hint to update Atom. Just did it but the parsing of file names containing spaces still fails for block images. Sorry for having bothered you, I can also live with the workaround using underscores :-)
You can encode the path of your image like that:
image::My%20Image.png[alt]
e.g. replace ` by
%20`
Yeah but then the PDF generation with asciidoctor fails with image not found error as it probably does not substitute %20 with a space. The workaround using underscores instead of spaces works for atom-asciidoc-preview and asciidoctor.
This will be resolved once the upgrade to 1.5.6 is complete as spaces are now permitted by the core processor.
Description
Images can be positioned as inline or block image. While inline images are correctly shown in the asciidoc preview window, block images are not. When I publish the asciidoc document to PDF, e.g. by using asciidoctor, the image appears in the PDF document as block image.
asciidoc-preview
version: 2.9.2language-asciidoc
version: 1.6.2Syntax example
Inline images defined as below are shown in the asciidoc-preview window:
Block images defined as below are NOT shown in the asciidoc-preview window but the statement is shown:
References
https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#images https://github.com/asciidoctor/docker-asciidoctor