-
Notifications
You must be signed in to change notification settings - Fork 3
-
Notifications
You must be signed in to change notification settings - Fork 3
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
support URL shortener #23
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Markdown links get rendered in their text representation as
Linkname (link)
. When using full URLs this will break the layout of the text.URL shortener config
ks-email-parser should support URL shortener for text rendering.
The shortener should be configurable through the config file
url-shortener
or command line param--url-shortener
.The value for shortener us a URL that gets called with a
GET
request and a placeholder{{url}}
for the URL that gets shorten. e.g.url-shortener: http://www.getkeepsafe.com/shortener/{{url}}
The shortened URL is return in the body of the request. This will be compatible with our own URL shortener and bit.ly.
Using url shortener
When rendering the text representation of emails, all URLs should be shortened when a URL shortener is defined in the config or through command line.
The text was updated successfully, but these errors were encountered: