diff --git a/lib/memex_web/components/core_components.ex b/lib/memex_web/components/core_components.ex index 2e87333..0f03903 100644 --- a/lib/memex_web/components/core_components.ex +++ b/lib/memex_web/components/core_components.ex @@ -168,14 +168,14 @@ defmodule MemexWeb.CoreComponents do link( link, to: link, - class: "link inline", + class: "link inline break-words", target: "_blank", rel: "noopener noreferrer" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "
#{link}" + "
#{link}" end ) end @@ -190,12 +190,12 @@ defmodule MemexWeb.CoreComponents do link( "[[[#{slug}]]]", to: ~p"/note/#{slug}", - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}
#{link}#{suffix}" + "#{prefix}
#{link}#{suffix}" end ) end @@ -217,12 +217,12 @@ defmodule MemexWeb.CoreComponents do link( "[[#{slug}]]", to: target, - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}
#{link}#{suffix}" + "#{prefix}
#{link}#{suffix}" end ) end @@ -245,12 +245,12 @@ defmodule MemexWeb.CoreComponents do link( "[#{slug}]", to: target, - class: "link inline" + class: "link inline break-words" ) |> HTML.Safe.to_iodata() |> IO.iodata_to_binary() - "#{prefix}
#{link}#{suffix}" + "#{prefix}
#{link}#{suffix}" end ) end