From cf2c3f5c707662d6da8fb331a2d74c5f46350b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Thu, 29 Jun 2023 08:55:06 +0200 Subject: [PATCH] WIP - attempt to support remote includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from what i understood, placing the allow-uri-read in attributes should have done the thing but it is not working... to investigate resolves #731 Signed-off-by: Aurélien Pupier --- src/asciidocParser.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asciidocParser.ts b/src/asciidocParser.ts index b9f7aa8e..559afb42 100644 --- a/src/asciidocParser.ts +++ b/src/asciidocParser.ts @@ -80,6 +80,7 @@ export class AsciidocParser { options.extension_registry = registry options.header_footer = true options.attributes = { + 'allow-uri-read': '', 'env-vscode': '', env: 'vscode', ...asciidoctorAttributes, @@ -130,6 +131,7 @@ export class AsciidocParser { private static getDefaultAsciidoctorOptions (baseDir: string): any { return { attributes: { + 'allow-uri-read': '', 'env-vscode': '', env: 'vscode', }, @@ -204,6 +206,7 @@ export class AsciidocParser { attributes['env-vscode'] = '' attributes.env = 'vscode' attributes['relfilesuffix@'] = '.adoc' + attributes['allow-uri-read'] = '' const antoraSupport = await AntoraSupportManager.getInstance(context.workspaceState) const antoraAttributes = await antoraSupport.getAttributes(doc.uri)