-
Notifications
You must be signed in to change notification settings - Fork 37
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
Question: How to embed Markdown files? #34
Comments
Hmm yea I've been thinking about this a bunch and agree it would be an excellent addition, however I'm a little stumped on how to implement in in an ergonomic way. The problem is that one of the core design goals of embedme is that it is idempotent - you should be able to rerun the tool after previously running it and get the exact same output. This is easy when there are code fences as it is clear where the embed should finish and the tool should start looking for the next embed point. If the tool was able to embed markdown in a raw fashion, if the tool was to be rerun after the embedded snippet was edited it would be unclear where the embed started and ended. This kinda leaves us with two options
This has the obvious disadvantage that all partials would be framed by a horizontal rule or
Did I miss an option? I think I have a preference for the second one despite it's verbosity PS, no problem, I love getting issues as it means the tool is somewhat useful 😁 |
I see. I also can't think of a better way than the second solution. |
Has this been implemented? |
@Botosio nope not yet, I'm open to PRs though! |
I have a script that creates some Markdown file (say,
output.md
) and I would like to include this file in another file (say, `README.md).I tried the following in
REAMDE.md
:but this seems to have no result.
If I add a code fence below, I get the warning
The warning is correct, as the file to be included indeed contains a code fence. But I would like to embed it as-is - not within a code fence.
Is this possible?
(Sorry for opening so many issues, but this tool is so cool, and it really helps us cleaning up the documentation of a large project!)
The text was updated successfully, but these errors were encountered: