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 parent argument to be able to add include between other children #127

Closed
cirosantilli opened this issue Jan 27, 2021 · 0 comments
Closed
Labels

Comments

@cirosantilli
Copy link
Contributor

It is currently impossible, include children must come before all other children.

E.g. if we had:

index.ciro:

= Animal

== Dog

== Cat

== Bat

and wanted to split Cat out at some point to cat.ciro, it would become:

= Animal

== Dog

\Include[cat]

== Bat

but then Cat would be a child of Dog.

So what we want to write is:

= Animal

== Dog

\Include[cat]{parent=animal}

== Bat

much like we can do for headers.

Currently the included Cat can only be a child of Animal if we change ordering to:

= Animal

\Include[cat]

== Dog

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

No branches or pull requests

1 participant