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

Option to strip leading whitespace? #30

Open
topherfangio opened this issue Mar 18, 2015 · 0 comments
Open

Option to strip leading whitespace? #30

topherfangio opened this issue Mar 18, 2015 · 0 comments

Comments

@topherfangio
Copy link

I am really loving this directive because it can greatly help me clean up my HTML for some documentation that I am writing! However, it makes me write funny HTML and I was hoping there was a way to get around this.

Since markdown supports code blocks by indenting with 4 spaces, I cannot easily achieve the following because of the leading whitespace:

<div class="md-col-4">
    <btf-markdown>
        * Some
        * List
        * Here
    </btf-markdown>
</div>

I instead have to write my HTML like the following which is a tad bit ugly:

<div class="md-col-4">
    <btf-markdown>
* Some
* List
* Here
    </btf-markdown>
</div>

Is there an option to strip the leading whitespace (perhaps based on the first line's amount of whitespace) so that we can more easily use this inline in our HTML?

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

1 participant