diff --git a/lib/gemini.ex b/lib/gemini.ex index 98d4b1d..2146c82 100644 --- a/lib/gemini.ex +++ b/lib/gemini.ex @@ -56,12 +56,12 @@ defmodule Gemini do | {:list_item, String.t()} | {:quoted, String.t()} - @link_line_regex ~r/\s*([^\s]+)(?:\s+([^\s]+))?/ + @link_line_regex ~r/\s*([^\s]+)(?:\s+(.+))?/ @spec parse(String.t()) :: [line()] def parse(doc) do - {lines, _, _} = + {lines, _} = doc |> String.split("\n") |> Enum.reduce({[], false}, fn line, {lines, in_preformatting} ->