btford / btford/angular-markdown-directive

Option to strip leading whitespace?

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
564
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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:

```



* Some
* List
* Here


```

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

```



* Some
* List
* Here


```

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.