azu / gitbook-plugin-include-codeblock

GitBook plugin for including file
Other
40 stars 25 forks source link

Add unindent behaviour #32

Closed aslakhellesoy closed 7 years ago

aslakhellesoy commented 7 years ago

I'd like to include code snippets from my unit tests, because I know that code is working.

Currently, this usually leads to a lot of leading spaces that don't look pretty in the generated gitbook page.

This PR adds an unindent option that will unindent the code as much as possible while preserving indentation.

Would you consider adding this to this awesome plugin?

Cheers, Aslak

azu commented 7 years ago

@aslakhellesoy Thanks!

azu commented 7 years ago

Release https://github.com/azu/gitbook-plugin-include-codeblock/releases/tag/2.1.0