Hi, I am quite new to this (and yet nagged the developers with some bugs ) so I'd like to know if there is a way to distinguish between …
viewing a file in IntelliJ's preview pane
viewing a file via button in a browser
Both have the the same user-home, env, outfilesuffix, …
What I'd like to achieve is this … while writing in IntelliJ, collapsible blocks are expanded, but them are collapsed when viewing the file in a browser.
As an alternative it would be nice to expand collapsed blocks in preview pane as soon as they are entered in the source pane or having an attribute in the language/plugin settings for the collapsed behaviour or not have the sections collapsed at all.
not that I am aware of. Please consider opening an issue the the AsciiDoc IntelliJ plugin. Maybe it is time to add another attribute like "env-preview" to the plugin.
Regards,
Alexander
(maintainer of the AsciiDoc plugin)
I had another look and there is an implicit difference between creating the HTML with the button and the preview: In the preview the attribute "embedded" is set. The following will work:
ifdef::embedded[]
Only shown if in preview
endif::[]
If we need something more generic than env=browser env-browser, we should probably discuss in an issue so that the various plugins can align.
Best Regards,
-Dan
On Thu, Apr 30, 2020 at 12:42 PM Alexander Schwartz [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I had another look and there is an implicit difference between creating the HTML with the button and the preview: In the preview the attribute "embedded" is set. The following will work:
ifdef::embedded[]
Only shown if in preview
endif::[]