Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

include:: Issues with file paths. #277

Open
carlvon1800 opened this issue Sep 30, 2018 · 2 comments
Open

include:: Issues with file paths. #277

carlvon1800 opened this issue Sep 30, 2018 · 2 comments
Assignees

Comments

@carlvon1800
Copy link

Description

Paths seems to have a lot of issues with this plugin, under Windows atleaste. I have tested the document with asciidoctor and it seems ok.

  • Atom version: 1.31.1
  • OS: Windows 10
  • asciidoc-preview version: 2.12.2
  • language-asciidoc version: 1.11.0

Screenshots

Unresolved directive in - include::../test.adoc[]

Syntax example

include::../test.adoc[]
@underscoredje
Copy link

Same thing on Fedora.
Exports on PDF include the file.
Preview and exports on HTML give this error

@ldez ldez self-assigned this Oct 4, 2018
@mojavelinux
Copy link
Member

In order to resolve an include file in a parent directory, you must set the safe mode of the add-on to "unsafe". The default is "safe". In safe mode, you can only resolve files inside the directory structure of the master file.

(Btw, this is true since the plugin sets the base directory option. If the base directory option was not set, then there would be no concept of a current directory and thus files could be resolved from anywhere. The base directory acts as a jail).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants