diff options
| author | kaniini <nenolod@gmail.com> | 2019-02-26 23:32:26 +0000 | 
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2019-02-26 23:32:26 +0000 | 
| commit | 1c265b3b19bacd2e0a9ccfee0f7e53a59d83a621 (patch) | |
| tree | 00170ceac7432de10e7fb7d6a5b6b4e3a0147281 /docs | |
| parent | e9703a53265d38302d5659752c8068b5ef4a021f (diff) | |
| parent | c3ac9424d2affe87df82c14dc243f507fa639343 (diff) | |
| download | pleroma-1c265b3b19bacd2e0a9ccfee0f7e53a59d83a621.tar.gz pleroma-1c265b3b19bacd2e0a9ccfee0f7e53a59d83a621.zip | |
Merge branch 'auto_linker' into 'develop'
AutoLinker
Closes #609
See merge request pleroma/pleroma!839
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/config.md | 27 | 
1 files changed, 26 insertions, 1 deletions
| diff --git a/docs/config.md b/docs/config.md index 14723b727..d1bf2a6f4 100644 --- a/docs/config.md +++ b/docs/config.md @@ -107,7 +107,7 @@ config :pleroma, Pleroma.Mailer,  An example to enable ONLY ExSyslogger (f/ex in ``prod.secret.exs``) with info and debug suppressed:  ``` -config :logger,  +config :logger,    backends: [{ExSyslogger, :ex_syslogger}]  config :logger, :ex_syslogger, @@ -301,3 +301,28 @@ For each pool, the options are:  * `max_connections` - how much connections a pool can hold  * `timeout` - retention duration for connections +## :auto_linker + +Configuration for the `auto_linker` library: + +* `class: "auto-linker"` - specify the class to be added to the generated link. false to clear +* `rel: "noopener noreferrer"` - override the rel attribute. false to clear +* `new_window: true` - set to false to remove `target='_blank'` attribute +* `scheme: false` - Set to true to link urls with schema `http://google.com` +* `truncate: false` - Set to a number to truncate urls longer then the number. Truncated urls will end in `..` +* `strip_prefix: true` - Strip the scheme prefix +* `extra: false` - link urls with rarely used schemes (magnet, ipfs, irc, etc.) + +Example: + +```exs +config :auto_linker, +  opts: [ +    scheme: true, +    extra: true, +    class: false, +    strip_prefix: false, +    new_window: false, +    rel: false +  ] +``` | 
