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

Paragraph after image macro is handled as code in some cases #1613

Closed
stdll opened this issue May 2, 2024 · 3 comments
Closed

Paragraph after image macro is handled as code in some cases #1613

stdll opened this issue May 2, 2024 · 3 comments
Labels

Comments

@stdll
Copy link

stdll commented May 2, 2024

Observed vs. expected behavior

Observed

Whenever I'm using the image macro and use more than one attribute (so I have to place a comma), the next paragraph gets a dark grey background and is handled like e.g. monospaced font. This means, among other issues, that xrefs aren't validated and the IDE doesn't check for grammar and spelling errors.

Expected

The text after the image macro is handled as any other paragraph.

Steps to reproduce

  1. Create new AsciiDoc file in editor
  2. Use the image macro and put more than one attribute within the brackets.
  3. Write something in the next line(s).

Markup sample

image::path/to/image.png[640,480]

Der nachfolgende Abschnitt wird wie Code dargestellt.
Egal wie viele Zeilen er hat.

Jetzt geht es wieder.

Output sample

bug-asciidoc-plugin

Environment

Antora Version: 3.1.7
Asciidoctor: 2.2.6

Plugin Version: 0.41.13

IntelliJ Details:
IntelliJ IDEA 2024.1.1 (Ultimate Edition)
Build #IU-241.15989.150, built on April 29, 2024
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
com.jetbrains.plugins.ini4idea (241.15989.113)
com.intellij.plugins.xwinkeymap (211.4961.30)
com.intellij.properties.bundle.editor (241.14494.150)
org.asciidoctor.intellij.asciidoc (0.41.13)
com.dmarcotte.handlebars (241.14494.150)
org.sonarlint.idea (10.5.0.78339)
mobi.hsz.idea.gitignore (4.5.3)
Kotlin: 241.15989.150-IJ

@stdll stdll added the bug label May 2, 2024
@ahus1
Copy link
Contributor

ahus1 commented May 2, 2024

This seems to be a regression in plugin version 0.41.12. I'm sorry for breaking this and thank you for reporting it.

It will be fixed in the next version of this plugin. I'll comment on this issue once a pre-release is available.

@ahus1
Copy link
Contributor

ahus1 commented May 3, 2024

Plugin-version 0.41.14 is now available with a fix. It should be available from the JetBrains markeplace soon.

The it is also available from GitHub releases.

@stdll
Copy link
Author

stdll commented May 3, 2024

I can confirm that the fix is working. Thank you for fixing this issue this fast!

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

No branches or pull requests

2 participants