Skip to content

Commit

Permalink
WIP - attempt to support remote includes
Browse files Browse the repository at this point in the history
from what i understood, placing the allow-uri-read in attributes should
have done the thing but it is not working... to investigate

resolves asciidoctor#731

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Jun 29, 2023
1 parent 6a03eeb commit cf2c3f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/asciidocParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -130,6 +131,7 @@ export class AsciidocParser {
private static getDefaultAsciidoctorOptions (baseDir: string): any {
return {
attributes: {
'allow-uri-read': '',
'env-vscode': '',
env: 'vscode',
},
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cf2c3f5

Please sign in to comment.