posthtml-shorten
A PostHTML plugin to shorten URLs in HTML elements.
Usage
var posthtml = ;var shorten = ; var shortener = { ; }; var options = shortener: shortener // Must contain a `shorten` function tag: 'a' 'img' 'body' // Allowed tags for URL shortening attribute: 'href' 'src' // Attributes to replace on the elements; ;