Re: Chrome Asciidoctor.js plugin environment variables

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/include-and-imagesdir-in-different-folders-tp8154p8155.html

It's very unlikely this is going to work automatically since the browser plugin is restricted in what information can access from the local system.

I'm confident you can set the attribute manually in the options page of the extension (https://github.com/asciidoctor/asciidoctor-browser-extension#options). However, you will need to use a different attribute name, like "home".

home=/home/username

That's because the user-home attribute is hard-coded as ".". If you think it should be possible to override this attribute from the options page, please comment on the issue in the issue tracker.

Best Regards,

-Dan

On Sun, Aug 9, 2020 at 2:39 AM yo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,
I need the {user-home} environment variable in my asciidoc scripts. It works perfectly with the asciidoctor plugin in atom but doesn't render with Brave (close to Chromium). Tried to add environment variable in the asciidoctor.js plugin but unsuccessful.
Any idea?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Chrome-Asciidoctor-js-plugin-environment-variables-tp8154.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux