asciidoctor-vscode
asciidoctor-vscode copied to clipboard
Support remote includes
trafficstars
Currently remote includes are not resolved (neither in the preview, neither in completion of attributes)
https://docs.asciidoctor.org/asciidoc/latest/directives/include-uri/#reference-include-content-by-uri
example:
include::https://gist.githubusercontent.com/apupier/528a635931932adbdf755303e0116314/raw/f55d188f903ede2a9f3a25c7deeb28046810fe5c/test-remote-attribute.adoc[]
== test
{remote-test}
preview gives:
Did you try with :allow-uri-read:?
setting the allow-uri-read attribute securely from the CLI or API
You need to enable this feature by setting allow-uri-read in your settings (or in your .asciidoctorconfig):
{
"asciidoc.preview.asciidoctorAttributes": {
"allow-uri-read": "",
}
}
Having said that, it does not seems to work inside VS code: