Esc

COMARK1104 · error

comark/include/path-outside-root

Keep included paths under the root

An include can't read anything outside its root, so a src that climbs out with ../, or a symlink that leads out, is dropped. Otherwise a document could paste any file the build can read, such as a key in the home folder, into the page. The same goes for a base option that leaves the root.

Incorrect

:include{src="../../package.json" code}
md
lint-comark example.mdexample.md:1:15 comark/include/path-outside-rootinclude "../../package.json": the path leaves the root.Move the file under the root or widen root.✖ 1 problem

Correct

:include{src="ducks.md"}
md
lint-comark example.md✔ No problems