Skip to content

How to remove Snippet Section indent? #1913

Discussion options

You must be logged in to vote

There is not currently a way to do so. Snippets is a fairly simple approach to injecting content from one file into another. Constant requests to make it a little more advanced have led us to sections 🙂. Sections are a fairly new feature. We could potentially consider adding some sort of dedent functionality, but at this time, I'm not quite sure what the syntax would even look like to make that happen...under the hood, it would be fairly easy to do so.

Now, snippets can be complex and even have nested snippets. If I were to add any kind of dedent functionality, I don't imagine I want to get too complicated and try to consider nested snippet context when dedenting, but if we are talking ab…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@maciejwalkowiak
Comment options

Answer selected by facelessuser
Comment options

You must be logged in to vote
1 reply
@facelessuser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants