Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adam12/pretty-pre

Preserve indentation in pre tags
https://github.com/adam12/pretty-pre

Last synced: about 1 month ago
JSON representation

Preserve indentation in pre tags

Awesome Lists containing this project

README

        

# Pretty Pre

Preserve indentation in HTML `

` blocks.

### Why

It's annoying, specifically when using a code highlighting tool, to have to
left-align the content of a `

`. I like to have my entire document

properly indented.

### How

Pretty Pre will strip the leader `|` and preceeding whitespace for each line in
your code block.

### Install

$ component install adam12/pretty-pre

### Usage

See `example.html`

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2014 Adam Daniels