From c4f3b56219e6506b36a617f44f6a5e6a74f85a20 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Tue, 17 Nov 2020 15:45:38 +0000 Subject: [PATCH] Add example to README showing how we link user mentions --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d02c155..855ba9c 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,9 @@ iex> Linkify.link("google.com", new_window: true) iex> Linkify.link("google.com", new_window: true, rel: "noopener noreferrer") "google.com" + +iex> Linkify.link("Hello @niceguy17@pleroma.com", mention: true, mention_prefix: "/users/") +"Hello @niceguy17@pleroma.com" ``` See the [Docs](https://hexdocs.pm/linkify/) for more examples