Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include: cyclic references cause stack overflow #594

Closed
sijie123 opened this issue Jan 19, 2019 · 0 comments · Fixed by #614
Closed

include: cyclic references cause stack overflow #594

sijie123 opened this issue Jan 19, 2019 · 0 comments · Fixed by #614

Comments

@sijie123
Copy link
Contributor

Tell us about your environment

  • NodeJS v9.3.0
  • MarkBind Version: v1.16.1

What did you do? Please include the actual source code causing the issue.

a.md

<include src="b.md" />

b.md

<include src="a.md" />

What did you expect to happen?
The includes should be resolved automatically. At least, a user-friendly error should given, to allow the user to understand what happens.

What actually happened? Please include the actual, raw output.
MarkBind errored with a RangeError.

error: RangeError: Maximum call stack size exceeded
Error while preprocessing '/path/to/file/a.md'

However, the RangeError and "Maximum call stack size" error isn't helpful in determining what went wrong.

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

Successfully merging a pull request may close this issue.

2 participants