-
Notifications
You must be signed in to change notification settings - Fork 83
Ability to include code from the _files
in the markdown of the lesson
#264
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
Comments
Interesting idea! At first I was thinking this should be solved in userland by creating custom Astro components that simply read the file contents with |
@AriPerkkio this seems to be built in with vitepres |
We already support this feature actually! It's not documented but you can do it with:
See #18 |
Let's add documentation for this in #250. |
@AriPerkkio the existing solution is only partial - I need the ability to select which lines will be included from the source file. Sometimes the source file can be 40 lines, with changes to two - I want to focus on 5 lines and highlight the change in these two |
Sure - that's good enough. Is there a specific md page you want me to document all of this in? |
Hi @AriPerkkio I would like to document these options - can you let me know which package are you using for the code snippets - so I'll investigate their docs? and also which one is being used for markdown? |
I think
TutorialKit supports We also have these plugins enabled: tutorialkit/packages/astro/package.json Lines 36 to 37 in d14c404
|
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
In many cases the code blocks in my markdown is the same code from the
_files
or_solution
- and keeping it consistent is not idealDescribe the solution you'd like.
I wish I could reference to a a file in the lesson from the code.
Something like
The text was updated successfully, but these errors were encountered: