-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Including other files between some start and end string #879
Comments
Another thing that would be useful is being able to start from some string and then end at some offset number of lines.
So this would start at the first line that contained |
Made a preprocessor for this |
Ohhhh awesome thanks for the links! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now you can include the contents of a file in between two line numbers.
This has been useful - but can lead to some rot if you modify a file and forget to update your mdbook.
That rot has led me to sometimes split some code into another file - not because I wanted to or thought that it made sense - but because I wanted to be able to include it into an mdbook without forgetting to update the include statement.
I'm thinking that it would be useful to be able to include between some start and end sequence
Here's a rough sketch:
Could certainly be done in a third-party plugin - but I'm thinking that something like this might be useful enough to include in core...?
Rough ideas above so.. any thoughts are appreciated!
The text was updated successfully, but these errors were encountered: