logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker git clone https://hacktivis.me/git/auto_linker.git
commit: cfc6355bbe85874ddee91a05557f4f0a4a106fe4
parent d6a0318275b9afa641a7a31d912a12312db3058f
Author: Egor Kislitsyn <egor@kislitsyn.com>
Date:   Sat, 23 Feb 2019 20:09:43 +0700

fix link text

Diffstat:

Mlib/auto_linker/builder.ex6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/auto_linker/builder.ex b/lib/auto_linker/builder.ex @@ -6,15 +6,15 @@ defmodule AutoLinker.Builder do @doc """ Create a link. """ - def create_link(url, opts) do - url = add_scheme(url) + def create_link(text, opts) do + url = add_scheme(text) [] |> build_attrs(url, opts, :rel) |> build_attrs(url, opts, :target) |> build_attrs(url, opts, :class) |> build_attrs(url, opts, :href) - |> format_url(url, opts) + |> format_url(text, opts) end def create_markdown_links(text, opts) do