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

external file code block: initial implementation #144

Merged
merged 1 commit into from
May 4, 2021

Conversation

cart
Copy link
Member

@cart cart commented May 4, 2021

Adds the ability to embed external files as code blocks in markdown text. This opens up the doors to validating these files using other tooling (such as cargo build for rust).

The syntax is:

{{file_code_block(path="templates/base.html" lang="html")}}

More context in #143

@cart
Copy link
Member Author

cart commented May 4, 2021

This could be improved in the future by adding the ability to provide "line number ranges" to filter down to a subsection of a file.

@cart cart merged commit 34e6114 into bevyengine:master May 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants