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

Support including snippets of files #71

Open
holdenk opened this issue Nov 4, 2020 · 3 comments
Open

Support including snippets of files #71

holdenk opened this issue Nov 4, 2020 · 3 comments

Comments

@holdenk
Copy link

holdenk commented Nov 4, 2020

I'd really like to be able to include snippets of files like in asciidoctor.

@zakhenry
Copy link
Owner

zakhenry commented Nov 4, 2020

Hi, I'm not familiar with asciidoctor, can you provide an example of how that might look with embedme?

@holdenk
Copy link
Author

holdenk commented Nov 15, 2020

Totally. So in asciidoctor I can add a tags=blah to the end of an include statement and then when reading in the source file it will look for a line with tag::blah[] and then include all of the text until the line end::blah[]. This makes it really simple to include snippets of files. I've got a post I've done using asciidoctor and Jekyll https://raw.githubusercontent.com/scalingpythonml/scalingpythonml.github.io/master/_posts/2020-11-03-a-first-look-at-dask-on-arm-on-k8s.asciidoc and the generated post is at https://scalingpythonml.com/2020/11/03/a-first-look-at-dask-on-arm-on-k8s.html

Totally understand if it's not part of the vision for embedme, but if it is I'd love to be able to simplify my workflow and stay in markdown using embedme :)

@zakhenry
Copy link
Owner

Ahh right I getcha, is this essentally the same thing as #48 ?

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

No branches or pull requests

2 participants