From e8470008ec017295cacdba31578b85bb4c83aeb9 Mon Sep 17 00:00:00 2001 From: Egor Kislitsyn Date: Fri, 8 Feb 2019 19:28:38 +0700 Subject: [PATCH] fix readme examples --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 253229e..c1b1dcd 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ end The following examples illustrate some examples on how to use the auto linker. +```iex iex> AutoLinker.link("google.com") "google.com" @@ -36,17 +37,18 @@ iex> AutoLinker.link("google.com", new_window: false, rel: false) iex> AutoLinker.link("google.com", new_window: false, rel: false, class: false) "google.com" -iex> AutoLinker.link("call me at x9999") -~s{call me at x9999} +iex> AutoLinker.link("call me at x9999", phone: true) +"call me at x9999" -iex> AutoLinker.link("or at home on 555.555.5555") -~s{or at home on 555.555.5555} +iex> AutoLinker.link("or at home on 555.555.5555", phone: true) +"or at home on 555.555.5555" -iex> AutoLinker.link(", work (555) 555-5555") -~s{, work (555) 555-5555} +iex> AutoLinker.link(", work (555) 555-5555", phone: true) +", work (555) 555-5555" iex> AutoLinker.link("[Google Search](http://google.com)", markdown: true) "Google Search" +``` See the [Docs](https://hexdocs.pm/auto_linker/) for more examples