Re: Preprocessor/ifdef check for asciidoctor.js environment
That's a great question. Since Asciidoctor.js is actually a lot of different environments, we've decided to take a more specific approach. First, you can check for Asciidoctor.js in general by checking for the platform-opal attribute. To check if it's also running in the browser, you can check for env-browser.
At the moment, these attributes are set by the plugins that integrate Asciidoctor.js, though we should definitely consider promoting the general ones to the Asciidoctor.js build.
As another option, I think we should define the asciidoctorjs-version (or asciidoctor-js-version) attribute similar to how we define asciidoctor-version.
On Sun, May 14, 2017 at 11:44 AM, puffybsd [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Is the a way to check within a document if the runtime is asciidoctor.js?
If you reply to this email, your message will be added to the discussion below: