-
Notifications
You must be signed in to change notification settings - Fork 97
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
Conditional env for vscode in asciidoc: how to detect we are in vscode preview #280
Comments
here is an example of an adoc file in an antora framework: |
Thanks for logging this issue @prudhomm, I think we could set an attribute in vscode to detect this -- something like |
Add env-vscode attribute to detect vs code environment, closes #280
@joaompinto @danyill thanks a lot! any ETR for this feature? |
@prudhomm 2.7.15 was published now, containing this improvement. Thanks |
Thanks a lot |
@danyill @joaompinto it works very well. top of the document,
where I add an image, no
|
I am writing pages in asciidoc for an Antora website.
I wish to visualise the images in preview. The images are not in the same directory as the adoc file
Is your feature request related to a problem? Please describe
How do I detect that I am in vscode (preview) to display images ?
work fine at top of doc in github.
Describe the solution you'd like
would it be possible to have something like
or maybe there exists already an
env-
that catches that we are in vscode preview?I would have expected
env-browser
to work.The text was updated successfully, but these errors were encountered: