Add example to README showing how we link user mentions
This commit is contained in:
parent
175ee6cbea
commit
c4f3b56219
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ iex> Linkify.link("google.com", new_window: true)
|
|||
|
||||
iex> Linkify.link("google.com", new_window: true, rel: "noopener noreferrer")
|
||||
"<a href=\"http://google.com\" target=\"_blank\" rel=\"noopener noreferrer\">google.com</a>"
|
||||
|
||||
iex> Linkify.link("Hello @niceguy17@pleroma.com", mention: true, mention_prefix: "/users/")
|
||||
"Hello <a href=\"/users/niceguy17@pleroma.com\">@niceguy17@pleroma.com</a>"
|
||||
```
|
||||
|
||||
See the [Docs](https://hexdocs.pm/linkify/) for more examples
|
||||
|
|
Reference in a new issue