Cyclical {% include %} causes crash
Say I have 2 markdown files: md1.md and md2.md.
md1.md contains
# My Cool header
{% include md2.md %}
and md2.md contains
# I just want to watch the world burn.
{% include md1.md %}
This situation creates an infinite loop and crashes the editor.
This appears to put gitbook itself into an infinite loop.
Ah, no it actually dies eventually with RangeError: Maximum call stack size exceeded (In file "[file name]")
Either way you don't want Atom to crash when this happens. So maybe detect the cyclical loop and toss up a warning?
So maybe just a recursion counter? With a max depth of something like 10?
That sounds reasonable to me, yeah.