Re: IntelliJ plugin - can I detect preview mode?
Posted by
Alexander Schwartz on
Apr 30, 2020; 6:42pm
URL: https://discuss.asciidoctor.org/IntelliJ-plugin-can-I-detect-preview-mode-tp7961p7963.html
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::[]