Fix entire link text not being parsed

This commit is contained in:
Shadowfacts 2020-07-18 23:00:51 -04:00
parent 07abee79ed
commit 9c8a738494
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -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} ->