Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adam12/pretty-pre
- Owner: adam12
- License: mit
- Created: 2014-07-14T14:29:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T14:31:05.000Z (over 10 years ago)
- Last Synced: 2024-11-30T13:36:06.725Z (about 1 month ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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