Re: IntelliJ plugin - can I detect preview mode?
Posted by
mojavelinux on
May 01, 2020; 9:02pm
URL: https://discuss.asciidoctor.org/IntelliJ-plugin-can-I-detect-preview-mode-tp7961p7965.html
Here's what we use for the preview in Atom
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::[]
--