Esc

COMARK1106 · warning

comark/include/include-cycle

Don't let a file include itself

A file that includes itself, directly or through other files, would paste forever. The include that closes the loop is dropped, and the rest of the file is pasted once. Here loop.md ends with :include{src="loop.md"}.

Incorrect

:include{src="loop.md"}
md
lint-comark example.mdexample.md:1:15 comark/include/include-cycleinclude "loop.md": loop.md includes itself (loop.md -> loop.md).Remove one of the includes.✖ 1 problem

Correct

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