-
Notifications
You must be signed in to change notification settings - Fork 15
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 directive with start-at and end-before options #398
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Another approach to this might be to allow for including Sentence one.
(two)=
Sentence two. and then later:
And this would result in:
|
The I come from a LaTeX background, so the My use case is that I'm writing some scientific software help and documentation. The documentation is a deliverable for an NSF-funded project and also a research product itself. I'd like to provide it as a static website and a downloadable pdf -- MyST seems perfect here. There are several cases where I want to reproduce a set of instructions -- e.g., a subsection including text and figures. In a digital medium, there's no real need to refer the reader to a different page, so I might as well reproduce the same content on several pages. My understanding is that I can do this with the current Thank you all for your work on MyST -- this is really fun, and I've started another project in Curvenote that I hope to spin up later this summer! |
Context
It would be useful to duplicate portions of non-code text from one (e.g., markdown) document and in another (e.g., also markdown) document. Currently, it is possible to include a snippet of code as a code block using the
literalinclude
directive, but not text/markdown.Proposal
Use the :start-at: and :end-before: options with the
include
directive.For instance,
would insert the second and third sentences from the usual Lorem Ipsum text.
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: